Fix release API URL generation (#8239)

This commit is contained in:
Daniel Fonseca de Lira authored and techknowlogick committed 2019-09-19 11:15:19 -04:00
1 parent 3fc42add16
commit 0ed5a647dd
1 file changed
+1 -1
+1 -1
View 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)
}