aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-07-02 16:42:16 -0400
committerUnknown <joe2010xtmf@163.com>2014-07-02 16:42:16 -0400
commit465dc962b5e1febdfc988419d4d03e98f777019f (patch)
tree8c0f4abc434f75a7add718e98b077cb245608062 /cmd/web.go
parente57aebb31667a1de54e82cd26e9bbdb8e795039d (diff)
downloadgitea-465dc962b5e1febdfc988419d4d03e98f777019f.tar.gz
gitea-465dc962b5e1febdfc988419d4d03e98f777019f.zip
Finish create organization team
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index af92b71384..9056029570 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -195,9 +195,10 @@ func runWeb(*cli.Context) {
r.Get("/:org/dashboard", org.Dashboard)
r.Get("/:org/members", org.Members)
- r.Get("/:org/teams/:team/edit", org.EditTeam)
- r.Get("/:org/teams/new", org.NewTeam)
r.Get("/:org/teams", org.Teams)
+ r.Get("/:org/teams/new", org.NewTeam)
+ r.Post("/:org/teams/new", bindIgnErr(auth.CreateTeamForm{}), org.NewTeamPost)
+ r.Get("/:org/teams/:team/edit", org.EditTeam)
r.Get("/:org/settings", org.Settings)
r.Post("/:org/settings", bindIgnErr(auth.OrgSettingForm{}), org.SettingsPost)