aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-04-30 16:32:01 +0200
committerGitHub <noreply@github.com>2022-04-30 16:32:01 +0200
commit1597e2da3e72b9a846f7b17bf38c1d192f43c182 (patch)
tree355ad785576f0e1511183a1b31ba7bd107103e19 /routers/api/v1/api.go
parentd23f2203433617d1b4146db1e9359f7368915d63 (diff)
downloadgitea-1597e2da3e72b9a846f7b17bf38c1d192f43c182.tar.gz
gitea-1597e2da3e72b9a846f7b17bf38c1d192f43c182.zip
Use middleware to open gitRepo (#19559)
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 9351cc1510..ce0719ddd8 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -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() {