diff options
author | zeripath <art27@cantab.net> | 2021-02-19 21:36:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 22:36:43 +0100 |
commit | aa4f9180e4932a9813e898bf3bd9ac91924eeb03 (patch) | |
tree | e181203ffc52a8bb1740fdb81aeeeba5183c42bf /models/repo.go | |
parent | 39aa11f9c0d8aabd188f543d60752e0b8ff95cc5 (diff) | |
download | gitea-aa4f9180e4932a9813e898bf3bd9ac91924eeb03.tar.gz gitea-aa4f9180e4932a9813e898bf3bd9ac91924eeb03.zip |
Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999)
Also removes some unnecessary uses of fmt.Sprintf and adds documentation
strings
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index a7bc566971..03259d9e34 100644 --- a/models/repo.go +++ b/models/repo.go @@ -318,7 +318,7 @@ func (repo *Repository) CommitLink(commitID string) (result string) { // APIURL returns the repository API URL func (repo *Repository) APIURL() string { - return setting.AppURL + path.Join("api/v1/repos", repo.FullName()) + return setting.AppURL + "api/v1/repos/" + repo.FullName() } // GetCommitsCountCacheKey returns cache key used for commits count caching. |