diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-05-01 17:44:22 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-05-01 17:44:22 +0800 |
commit | 52fbb9788aa80adb56c96389f73c878cc0fe8b42 (patch) | |
tree | 505a74da03dbf825fc01136bbb090eb77ade4bf0 /web.go | |
parent | 49dc57e3368c6b6557520b671c9f1c3b4fe26db8 (diff) | |
download | gitea-52fbb9788aa80adb56c96389f73c878cc0fe8b42.tar.gz gitea-52fbb9788aa80adb56c96389f73c878cc0fe8b42.zip |
add collaboration page ui
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -121,10 +121,10 @@ func runWeb(*cli.Context) { m.Get("/user/:username", ignSignIn, user.Profile) m.Group("/repo", func(r martini.Router) { - m.Get("/create", repo.Create) - m.Post("/create", bindIgnErr(auth.CreateRepoForm{}), repo.CreatePost) - m.Get("/migrate", repo.Migrate) - m.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), repo.MigratePost) + r.Get("/create", repo.Create) + r.Post("/create", bindIgnErr(auth.CreateRepoForm{}), repo.CreatePost) + r.Get("/migrate", repo.Migrate) + r.Post("/migrate", bindIgnErr(auth.MigrateRepoForm{}), repo.MigratePost) }, reqSignIn) adminReq := middleware.Toggle(&middleware.ToggleOptions{SignInRequire: true, AdminRequire: true}) @@ -150,6 +150,7 @@ func runWeb(*cli.Context) { m.Group("/:username/:reponame", func(r martini.Router) { r.Get("/settings", repo.Setting) r.Post("/settings", repo.SettingPost) + r.Get("/collaboration", repo.Collaboration) r.Get("/action/:action", repo.Action) r.Get("/issues/new", repo.CreateIssue) r.Post("/issues/new", bindIgnErr(auth.CreateIssueForm{}), repo.CreateIssuePost) |