From 7e401b9e3993d9b3e4e64ba63d36fbcbdf688430 Mon Sep 17 00:00:00 2001 From: Bwko Date: Fri, 20 Jan 2017 14:47:09 +0100 Subject: [PATCH] Fix crash caused by #647 (#708) --- routers/api/v1/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index b83cb36a70b..55622da1d82 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -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)