]> source.dussan.org Git - gitea.git/commitdiff
Fix release API URL generation (#8234)
authorDaniel Fonseca de Lira <danielflira@gmail.com>
Thu, 19 Sep 2019 00:23:45 +0000 (21:23 -0300)
committertechknowlogick <techknowlogick@gitea.io>
Thu, 19 Sep 2019 00:23:45 +0000 (20:23 -0400)
models/release.go

index e3386d074f8e0bedf3ddfc92440280da65a877a7..dde6c17ea841e98707003ee425842163d2776bfe 100644 (file)
@@ -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)
 }