summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-05-01 17:44:22 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-05-01 17:44:22 +0800
commit52fbb9788aa80adb56c96389f73c878cc0fe8b42 (patch)
tree505a74da03dbf825fc01136bbb090eb77ade4bf0 /web.go
parent49dc57e3368c6b6557520b671c9f1c3b4fe26db8 (diff)
downloadgitea-52fbb9788aa80adb56c96389f73c878cc0fe8b42.tar.gz
gitea-52fbb9788aa80adb56c96389f73c878cc0fe8b42.zip
add collaboration page ui
Diffstat (limited to 'web.go')
-rw-r--r--web.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/web.go b/web.go
index 962764af5d..49ad004008 100644
--- a/web.go
+++ b/web.go
@@ -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)