doc: added docstrings to all db/git functions

This commit is contained in:
Jef Roosens 2022-05-03 19:55:52 +02:00
parent 204144cee8
commit 5781796e99
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 15 additions and 2 deletions

View file

@ -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,
{}) ?