diff options
author | Unknwon <u@gogs.io> | 2015-11-16 10:14:12 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-16 10:14:12 -0500 |
commit | 134d8e7681d098b8b37d4ee47cea0e03d643965d (patch) | |
tree | bd14c2318fce4b282687d41e77fba3b268bd4bc1 /cmd/web.go | |
parent | c9b65f0fdcaebb23cc6071e86881f623e6b6a3e7 (diff) | |
download | gitea-134d8e7681d098b8b37d4ee47cea0e03d643965d.tar.gz gitea-134d8e7681d098b8b37d4ee47cea0e03d643965d.zip |
work on #1961
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cmd/web.go b/cmd/web.go index dabea0ba5a..095ddeb1f0 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -512,11 +512,14 @@ func runWeb(ctx *cli.Context) { }, reqSignIn, middleware.RepoAssignment(true)) m.Group("/:username/:reponame", func() { - m.Get("/releases", middleware.RepoRef(), repo.Releases) - m.Get("/^:type(issues|pulls)$", repo.RetrieveLabels, repo.Issues) - m.Get("/^:type(issues|pulls)$/:index", repo.ViewIssue) - m.Get("/labels/", repo.RetrieveLabels, repo.Labels) - m.Get("/milestones", repo.Milestones) + m.Group("", func() { + m.Get("/releases", repo.Releases) + m.Get("/^:type(issues|pulls)$", repo.RetrieveLabels, repo.Issues) + m.Get("/^:type(issues|pulls)$/:index", repo.ViewIssue) + m.Get("/labels/", repo.RetrieveLabels, repo.Labels) + m.Get("/milestones", repo.Milestones) + }, middleware.RepoRef()) + m.Get("/branches", repo.Branches) m.Get("/archive/*", repo.Download) |