aboutsummaryrefslogtreecommitdiffstats
path: root/routers/routes
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-08-30 13:36:52 +0800
committerGitHub <noreply@github.com>2017-08-30 13:36:52 +0800
commit04ec79579cdcd5cf647ef3ff33d35ecfa7550b49 (patch)
tree261ba09b42fe1eb7af4b215b3c2360f8593ada20 /routers/routes
parent5de94a67cf09ae21254269058d86f71fe05ea243 (diff)
downloadgitea-04ec79579cdcd5cf647ef3ff33d35ecfa7550b49.tar.gz
gitea-04ec79579cdcd5cf647ef3ff33d35ecfa7550b49.zip
fix orgnization webhooks (#2422)
* fix org webhooks * remove trace code
Diffstat (limited to 'routers/routes')
-rw-r--r--routers/routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index a51c809588..5fa93fdb09 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -396,7 +396,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Post("/gitea/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost)
m.Post("/gogs/new", bindIgnErr(auth.NewGogshookForm{}), repo.GogsHooksNewPost)
m.Post("/slack/new", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksNewPost)
- m.Post("/discord/new", bindIgnErr(auth.NewDiscordHookForm{}), repo.DiscordHooksEditPost)
+ m.Post("/discord/new", bindIgnErr(auth.NewDiscordHookForm{}), repo.DiscordHooksNewPost)
m.Get("/:id", repo.WebHooksEdit)
m.Post("/gitea/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost)
m.Post("/gogs/:id", bindIgnErr(auth.NewGogshookForm{}), repo.GogsHooksEditPost)