diff options
Diffstat (limited to 'routers/routes/macaron.go')
-rw-r--r-- | routers/routes/macaron.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/routers/routes/macaron.go b/routers/routes/macaron.go index 16977b9470..019b476e71 100644 --- a/routers/routes/macaron.go +++ b/routers/routes/macaron.go @@ -444,13 +444,15 @@ 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("/milestones", reqMilestonesDashboardPageEnabled, user.Milestones) + m.Get("/milestones/:team", reqMilestonesDashboardPageEnabled, user.Milestones) m.Get("/members", org.Members) m.Post("/members/action/:action", org.MembersAction) - m.Get("/teams", org.Teams) - }, context.OrgAssignment(true)) + }, context.OrgAssignment(true, false, true)) m.Group("/:org", func() { m.Get("/teams/:team", org.TeamMembers) |