aboutsummaryrefslogtreecommitdiff
path: root/cmd/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go15
1 files changed, 13 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index f62bc255..1668fae2 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -188,9 +188,20 @@ func runWeb(*cli.Context) {
reqOwner := middleware.RequireOwner()
- m.Group("/o", func(r martini.Router) {
+ m.Group("/org", func(r martini.Router) {
+ r.Get("/create", org.New)
+ r.Post("/create", bindIgnErr(auth.CreateOrgForm{}), org.NewPost)
r.Get("/:org", org.Organization)
- })
+ r.Get("/:org/dashboard", org.Dashboard)
+ r.Get("/:org/members", org.Members)
+ // organization teams
+ r.Get("/:org/teams/:team/edit", org.EditTeam)
+ r.Get("/:org/teams/new", org.NewTeam)
+ r.Get("/:org/teams", org.Teams)
+
+ r.Get("/:org/settings", org.Settings)
+ r.Post("/:org/settings", bindIgnErr(auth.OrgSettingForm{}), org.SettingsPost)
+ }, reqSignIn)
m.Group("/:username/:reponame", func(r martini.Router) {
r.Get("/settings", repo.Setting)