0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 10:05:18 +02:00

fix repo api url

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-25 21:20:29 -05:00
parent 5966278c9e
commit 99e51331bd
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -390,7 +390,7 @@ func (repo *Repository) CommitLink(commitID string) (result string) {
func (repo *Repository) APIURL() string {
var groupSegment string
if repo.GroupID > 0 {
groupSegment = fmt.Sprintf("group/%d", repo.GroupID)
groupSegment = fmt.Sprintf("group/%d/", repo.GroupID)
}
return setting.AppURL + "api/v1/repos/" + url.PathEscape(repo.OwnerName) + "/" + groupSegment + url.PathEscape(repo.Name)
}