From 5c7cb1594b6904657bc63c50abc8b72056a85e4b Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 11 Mar 2017 01:43:45 -0500 Subject: repo/branches: overview and all (#2310) --- cmd/web.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cmd') 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) -- cgit v1.2.3