0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-22 02:14:27 +01:00

Fix crash caused by #647 (#708)

This commit is contained in:
Bwko 2017-01-20 14:47:09 +01:00 committed by Lunny Xiao
parent 1610b9f547
commit 7e401b9e39

View file

@ -406,7 +406,7 @@ func RegisterRoutes(m *macaron.Macaron) {
Delete(org.ConcealMember)
})
m.Combo("/teams").Get(org.ListTeams).
Post("", bind(api.CreateTeamOption{}), org.CreateTeam)
Post(bind(api.CreateTeamOption{}), org.CreateTeam)
m.Group("/hooks", func() {
m.Combo("").Get(org.ListHooks).
Post(bind(api.CreateHookOption{}), org.CreateHook)