diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-06-07 13:27:24 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-06-07 13:27:24 +0800 |
commit | 4fcbf553aa9b451bc461e09a98711966668e1889 (patch) | |
tree | 17e7a9766d301b06b42ebfc732c7e24b8a3f4654 /cmd/web.go | |
parent | a0318db2f9094eda2beea19ed323244b4ae30831 (diff) | |
download | gitea-4fcbf553aa9b451bc461e09a98711966668e1889.tar.gz gitea-4fcbf553aa9b451bc461e09a98711966668e1889.zip |
organisation main page ui
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index 30db037a2c..2b14b0778e 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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) |