summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-24 19:14:00 -0500
committerUnknwon <u@gogs.io>2015-11-24 19:14:00 -0500
commit3ca544912fe84f5a3202855037a110af40809d43 (patch)
tree545d50b94b764380919b3408e7acef1b2105039d /cmd/web.go
parent7f9598141bd7b0200d9342f01243228eab3061ba (diff)
downloadgitea-3ca544912fe84f5a3202855037a110af40809d43.tar.gz
gitea-3ca544912fe84f5a3202855037a110af40809d43.zip
#1944 Drop /org/ URL path prefix in organization home page
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmd/web.go b/cmd/web.go
index bf94ad1955..791183fdb4 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -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 *****