summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-16 10:14:12 -0500
committerUnknwon <u@gogs.io>2015-11-16 10:14:12 -0500
commit134d8e7681d098b8b37d4ee47cea0e03d643965d (patch)
treebd14c2318fce4b282687d41e77fba3b268bd4bc1 /cmd/web.go
parentc9b65f0fdcaebb23cc6071e86881f623e6b6a3e7 (diff)
downloadgitea-134d8e7681d098b8b37d4ee47cea0e03d643965d.tar.gz
gitea-134d8e7681d098b8b37d4ee47cea0e03d643965d.zip
work on #1961
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go13
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)