1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-13 14:07:20 +00:00

Use middleware to open gitRepo (#19559)

This commit is contained in:
6543
2022-04-30 16:32:01 +02:00
committed by GitHub
parent d23f220343
commit 1597e2da3e
2 changed files with 3 additions and 7 deletions

View File

@ -1014,7 +1014,7 @@ func Routes() *web.Route {
m.Group("/{ref}", func() {
m.Get("/status", repo.GetCombinedCommitStatusByRef)
m.Get("/statuses", repo.GetCommitStatusesByRef)
})
}, context.ReferencesGitRepo())
}, reqRepoReader(unit.TypeCode))
m.Group("/git", func() {
m.Group("/commits", func() {