summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-05 22:07:35 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-05 22:07:35 -0400
commit4f2f3c285717eff7a2f4ae2b79fbb0809e786dc8 (patch)
tree09e78d81573632b8638347c87d4f93d2f1c63f1b /cmd/web.go
parent11f9d738e8a1bce4c35bc5e1c37f5a7d1bcded5c (diff)
downloadgitea-4f2f3c285717eff7a2f4ae2b79fbb0809e786dc8.tar.gz
gitea-4f2f3c285717eff7a2f4ae2b79fbb0809e786dc8.zip
Code convention
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index dc4daca085..30db037a2c 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -89,9 +89,11 @@ func runWeb(*cli.Context) {
m.Get("/", ignSignIn, routers.Home)
m.Get("/install", bindIgnErr(auth.InstallForm{}), routers.Install)
m.Post("/install", bindIgnErr(auth.InstallForm{}), routers.InstallPost)
- m.Get("/issues", reqSignIn, user.Issues)
- m.Get("/pulls", reqSignIn, user.Pulls)
- m.Get("/stars", reqSignIn, user.Stars)
+ m.Group("", func(r martini.Router) {
+ r.Get("/issues", user.Issues)
+ r.Get("/pulls", user.Pulls)
+ r.Get("/stars", user.Stars)
+ }, reqSignIn)
m.Group("/api", func(r martini.Router) {
m.Group("/v1", func(r martini.Router) {