repo/branches: overview and all (#2310)

This commit is contained in:
Unknwon
2017-03-11 01:43:45 -05:00
parent 3eb57370a6
commit 5c7cb1594b
13 changed files with 270 additions and 28 deletions

View File

@@ -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)