aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorkendaru <soud@protonmail.com>2015-10-02 10:48:31 +0200
committerkendaru <soud@protonmail.com>2015-10-02 10:48:31 +0200
commitb05c7b3faa54acd9b5722ee32d98f974d58b372d (patch)
tree81203ed8f39a82f395e8e7c3b3b96f34c7e7d466 /cmd
parent5c39d3fa7dfcb81bdaed222a73c8a7d3dd807e36 (diff)
downloadgitea-b05c7b3faa54acd9b5722ee32d98f974d58b372d.tar.gz
gitea-b05c7b3faa54acd9b5722ee32d98f974d58b372d.zip
moved routes to RouterRef group
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 9881a76cc5..ec0e4cd74f 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -514,9 +514,6 @@ func runWeb(ctx *cli.Context) {
m.Get("/labels/", repo.RetrieveLabels, repo.Labels)
m.Get("/milestones", repo.Milestones)
m.Get("/branches", repo.Branches)
- m.Get("/stars", middleware.RepoRef(), repo.Stars)
- m.Get("/watchers", middleware.RepoRef(), repo.Watchers)
- m.Get("/forks", middleware.RepoRef(), repo.Forks)
m.Get("/archive/*", repo.Download)
m.Group("/pulls/:index", func() {
@@ -530,6 +527,9 @@ func runWeb(ctx *cli.Context) {
m.Get("/raw/*", repo.SingleDownload)
m.Get("/commits/*", repo.RefCommits)
m.Get("/commit/*", repo.Diff)
+ m.Get("/stars", repo.Stars)
+ m.Get("/watchers", repo.Watchers)
+ m.Get("/forks", repo.Forks)
}, middleware.RepoRef())
m.Get("/compare/:before([a-z0-9]{40})...:after([a-z0-9]{40})", repo.CompareDiff)