forked from vieter-v/vieter
doc: added docstrings to all db/git functions
This commit is contained in:
parent
204144cee8
commit
5781796e99
5 changed files with 15 additions and 2 deletions
|
|
@ -34,6 +34,7 @@ pub fn get_repos(address string, api_key string) ?[]db.GitRepo {
|
|||
return data.data
|
||||
}
|
||||
|
||||
// get_repo returns the repo for a specific ID.
|
||||
pub fn get_repo(address string, api_key string, id int) ?db.GitRepo {
|
||||
data := send_request<db.GitRepo>(http.Method.get, address, '/api/repos/$id', api_key,
|
||||
{}) ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue