We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7e8273 commit c42b718Copy full SHA for c42b718
routers/web/web.go
@@ -1091,7 +1091,6 @@ func registerRoutes(m *web.Route) {
1091
}, context.RepoRef(), canEnableEditor, context.RepoMustNotBeArchived())
1092
1093
m.Group("/branches", func() {
1094
- m.Get("/list", repo.GetBranchesList)
1095
m.Group("/_new", func() {
1096
m.Post("/branch/*", context.RepoRefByType(context.RepoRefBranch), repo.CreateBranch)
1097
m.Post("/tag/*", context.RepoRefByType(context.RepoRefTag), repo.CreateBranch)
@@ -1248,6 +1247,7 @@ func registerRoutes(m *web.Route) {
1248
1247
}, repo.MustBeNotEmpty, dlSourceEnabled, reqRepoCodeReader)
1249
1250
+ m.Get("/list", repo.GetBranchesList)
1251
m.Get("", repo.Branches)
1252
}, repo.MustBeNotEmpty, context.RepoRef(), reqRepoCodeReader)
1253
0 commit comments