aboutsummaryrefslogtreecommitdiff
path: root/cmd/web.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-06-28 14:58:59 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-06-28 14:58:59 +0800
commit86e2627175ceaed544dabbbef40d9197995c2bd4 (patch)
tree820eb7762ca0d3fa4f14e657a1ce2aa9f4b73617 /cmd/web.go
parente5ae41e21f7fa1e25f04a28d907b89c78196c824 (diff)
parentee9b7f322ff4c4c14952c2f83fb03e90fa583cad (diff)
Merge branch 'master' of github.com:gogits/gogs
Conflicts: models/update.go routers/repo/http.go
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)