diff options
author | Bwko <bouwko@gmail.com> | 2017-01-20 14:47:09 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-20 21:47:09 +0800 |
commit | 7e401b9e3993d9b3e4e64ba63d36fbcbdf688430 (patch) | |
tree | e261f115094a0a49c8ef4c989b0012848f0a7c67 | |
parent | 1610b9f547982af08e771e979718ae9e84b573b6 (diff) | |
download | gitea-7e401b9e3993d9b3e4e64ba63d36fbcbdf688430.tar.gz gitea-7e401b9e3993d9b3e4e64ba63d36fbcbdf688430.zip |
Fix crash caused by #647 (#708)
-rw-r--r-- | routers/api/v1/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index b83cb36a70..55622da1d8 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) |