aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-11 01:43:45 -0500
committerUnknwon <u@gogs.io>2017-03-11 01:43:45 -0500
commit5c7cb1594b6904657bc63c50abc8b72056a85e4b (patch)
treef97e06b947ec12d039cd6fa0e3966a029ca6d44a /cmd
parent3eb57370a658a648ba504776b962d1d23cc57693 (diff)
repo/branches: overview and all (#2310)
Diffstat (limited to 'cmd')
-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)