summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
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) {