Skip to content

Commit 8f364fd

Browse files
fix repo api url
1 parent dce49c9 commit 8f364fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func (repo *Repository) CommitLink(commitID string) (result string) {
390390
func (repo *Repository) APIURL() string {
391391
var groupSegment string
392392
if repo.GroupID > 0 {
393-
groupSegment = fmt.Sprintf("group/%d", repo.GroupID)
393+
groupSegment = fmt.Sprintf("group/%d/", repo.GroupID)
394394
}
395395
return setting.AppURL + "api/v1/repos/" + url.PathEscape(repo.OwnerName) + "/" + groupSegment + url.PathEscape(repo.Name)
396396
}

0 commit comments

Comments
 (0)