aboutsummaryrefslogtreecommitdiff
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 8274c4d2..893b3e2d 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -575,8 +575,11 @@ func runWeb(ctx *cli.Context) error {
m.Get("/milestones", repo.Milestones)
}, context.RepoRef())
- // m.Get("/branches", repo.Branches)
- m.Post("/branches/delete/*", reqSignIn, reqRepoWriter, repo.DeleteBranchPost)
+ m.Group("/branches", func() {
+ m.Get("", repo.Branches)
+ m.Get("/all", repo.AllBranches)
+ m.Post("/delete/*", reqSignIn, reqRepoWriter, repo.DeleteBranchPost)
+ })
m.Group("/wiki", func() {
m.Get("/?:page", repo.Wiki)