diff options
Diffstat (limited to 'routers/routes')
-rw-r--r-- | routers/routes/macaron.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/routers/routes/macaron.go b/routers/routes/macaron.go index d54cd580d3..66c39b7f82 100644 --- a/routers/routes/macaron.go +++ b/routers/routes/macaron.go @@ -199,7 +199,8 @@ func RegisterMacaronRoutes(m *macaron.Macaron) { }, ignSignIn) m.Combo("/install", routers.InstallInit).Get(routers.Install). Post(bindIgnErr(auth.InstallForm{}), routers.InstallPost) - m.Get("/^:type(issues|pulls)$", reqSignIn, user.Issues) + m.Get("/issues", reqSignIn, user.Issues) + m.Get("/pulls", reqSignIn, user.Pulls) m.Get("/milestones", reqSignIn, reqMilestonesDashboardPageEnabled, user.Milestones) // ***** START: User ***** @@ -447,8 +448,10 @@ func RegisterMacaronRoutes(m *macaron.Macaron) { m.Group("/:org", func() { m.Get("/dashboard", user.Dashboard) m.Get("/dashboard/:team", user.Dashboard) - m.Get("/^:type(issues|pulls)$", user.Issues) - m.Get("/^:type(issues|pulls)$/:team", user.Issues) + m.Get("/issues", user.Issues) + m.Get("/issues/:team", user.Issues) + m.Get("/pulls", user.Pulls) + m.Get("/pulls/:team", user.Pulls) m.Get("/milestones", reqMilestonesDashboardPageEnabled, user.Milestones) m.Get("/milestones/:team", reqMilestonesDashboardPageEnabled, user.Milestones) m.Get("/members", org.Members) |