diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-08 04:45:38 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-08 04:45:38 -0400 |
commit | a80d8d96fa592fc357b0e3f94ccd114d71852557 (patch) | |
tree | 934afaa19b666b2ae5c6e962d2cbb8f24a24bc01 /cmd | |
parent | 302c863cda651130286838309d3d897cace93534 (diff) | |
parent | 4fcbf553aa9b451bc461e09a98711966668e1889 (diff) |
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -27,6 +27,7 @@ import ( "github.com/gogits/gogs/routers/admin" "github.com/gogits/gogs/routers/api/v1" "github.com/gogits/gogs/routers/dev" + "github.com/gogits/gogs/routers/org" "github.com/gogits/gogs/routers/repo" "github.com/gogits/gogs/routers/user" ) @@ -186,6 +187,10 @@ func runWeb(*cli.Context) { reqOwner := middleware.RequireOwner() + m.Group("/o", func(r martini.Router) { + r.Get("/:org", org.Organization) + }) + m.Group("/:username/:reponame", func(r martini.Router) { r.Get("/settings", repo.Setting) r.Post("/settings", bindIgnErr(auth.RepoSettingForm{}), repo.SettingPost) |