From 674106c7b6f916b1f002f8c29ce790337bc615a5 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 24 Mar 2017 16:32:14 -0400 Subject: repo: cleanup some code --- cmd/web.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index 7c0d210e..0ac22e01 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -512,6 +512,9 @@ func runWeb(ctx *cli.Context) error { m.Post("", repo.UpdateCommentContent) m.Post("/delete", repo.DeleteComment) }) + + m.Get("/labels/", repo.RetrieveLabels, repo.Labels) + m.Get("/milestones", repo.Milestones) }, ignSignIn, context.RepoAssignment(true)) m.Group("/:username/:reponame", func() { m.Group("/wiki", func() { @@ -597,8 +600,6 @@ func runWeb(ctx *cli.Context) error { m.Get("/releases", repo.MustBeNotBare, repo.Releases) m.Get("/pulls", repo.RetrieveLabels, repo.Pulls) m.Get("/pulls/:index", repo.ViewPull) - m.Get("/labels/", repo.RetrieveLabels, repo.Labels) - m.Get("/milestones", repo.Milestones) }, context.RepoRef()) m.Group("/branches", func() { -- cgit v1.2.3