diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-05 22:07:35 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-05 22:07:35 -0400 |
commit | 4f2f3c285717eff7a2f4ae2b79fbb0809e786dc8 (patch) | |
tree | 09e78d81573632b8638347c87d4f93d2f1c63f1b /cmd/web.go | |
parent | 11f9d738e8a1bce4c35bc5e1c37f5a7d1bcded5c (diff) | |
download | gitea-4f2f3c285717eff7a2f4ae2b79fbb0809e786dc8.tar.gz gitea-4f2f3c285717eff7a2f4ae2b79fbb0809e786dc8.zip |
Code convention
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 8 |
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) { |