aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Fonseca de Lira2019-09-19 12:15:19 -0300
committertechknowlogick2019-09-19 11:15:19 -0400
commit0ed5a647dd7928c75c78a8ef1cffc4fde2c2a79c (patch)
tree80e1924e0036d9ab068e199e711c8741da1be129
parent3fc42add160079d3c7a343ce4930436acea2af79 (diff)
Fix release API URL generation (#8239)
-rw-r--r--models/release.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/release.go b/models/release.go
index a6dfb5c20..c9bb19dc3 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)
}