diff options
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/web.go b/cmd/web.go index cc9fa385c3..764e2c1b92 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -226,10 +226,6 @@ func runWeb(*cli.Context) { r.Post("/create", bindIgnErr(auth.CreateOrgForm{}), org.CreatePost) m.Group("/:org", func(r *macaron.Router) { - r.Get("", org.Home) - }, middleware.OrgAssignment(true)) - - m.Group("/:org", func(r *macaron.Router) { r.Get("/dashboard", user.Dashboard) r.Get("/members", org.Members) r.Get("/members/action/:action", org.MembersAction) @@ -257,6 +253,9 @@ func runWeb(*cli.Context) { r.Route("/invitations/new", "GET,POST", org.Invitation) }, middleware.OrgAssignment(true, true, true)) }, reqSignIn) + m.Group("/org", func(r *macaron.Router) { + r.Get("/:org", org.Home) + }, middleware.OrgAssignment(true)) // Repository routers. m.Group("/repo", func(r *macaron.Router) { |