forked from kevadesu/forgejo
#1944 Drop /org/ URL path prefix in organization home page
This commit is contained in:
parent
7f9598141b
commit
3ca544912f
12 changed files with 125 additions and 128 deletions
|
@ -395,7 +395,7 @@ func runWeb(ctx *cli.Context) {
|
|||
m.Get("/teams/:team/repositories", org.TeamRepositories)
|
||||
m.Route("/teams/:team/action/:action", "GET,POST", org.TeamsAction)
|
||||
m.Route("/teams/:team/action/repo/:action", "GET,POST", org.TeamsRepoAction)
|
||||
}, middleware.OrgAssignment(true, true))
|
||||
}, middleware.OrgAssignment(true))
|
||||
|
||||
m.Group("/:org", func() {
|
||||
m.Get("/teams/new", org.NewTeam)
|
||||
|
@ -424,11 +424,8 @@ func runWeb(ctx *cli.Context) {
|
|||
})
|
||||
|
||||
m.Route("/invitations/new", "GET,POST", org.Invitation)
|
||||
}, middleware.OrgAssignment(true, true, true))
|
||||
}, middleware.OrgAssignment(true, true))
|
||||
}, reqSignIn)
|
||||
m.Group("/org", func() {
|
||||
m.Get("/:org", org.Home)
|
||||
}, ignSignIn, middleware.OrgAssignment(true))
|
||||
// ***** END: Organization *****
|
||||
|
||||
// ***** START: Repository *****
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue