summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorDaniel Fonseca de Lira <danielflira@gmail.com>2019-09-18 21:23:45 -0300
committertechknowlogick <techknowlogick@gitea.io>2019-09-18 20:23:45 -0400
commit09e452f84ae0194dd05ac7fe5b5bd7b65f4d26e1 (patch)
treebf16a0fdb589166a290d91e7e59845d698b26057 /models
parent3c0e6d11267bc9c45e6ff58b8c7a8511f4ccb0ab (diff)
downloadgitea-09e452f84ae0194dd05ac7fe5b5bd7b65f4d26e1.tar.gz
gitea-09e452f84ae0194dd05ac7fe5b5bd7b65f4d26e1.zip
Fix release API URL generation (#8234)
Diffstat (limited to 'models')
-rw-r--r--models/release.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/release.go b/models/release.go
index e3386d074f..dde6c17ea8 100644
--- a/models/release.go
+++ b/models/release.go
@@ -65,7 +65,7 @@ func (r *Release) LoadAttributes() error {
// APIURL the api url for a release. release must have attributes loaded
func (r *Release) APIURL() string {
- return fmt.Sprintf("%sapi/v1/%s/releases/%d",
+ return fmt.Sprintf("%sapi/v1/repos/%s/releases/%d",
setting.AppURL, r.Repo.FullName(), r.ID)
}