Browse Source

Fix release API URL generation (#8234)

tags/v1.11.0-dev
Daniel Fonseca de Lira techknowlogick 6 years ago
parent
commit
1a00bb3a3b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/release.go

+ 1
- 1
models/release.go 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)
}



Loading…
Cancel
Save