summaryrefslogtreecommitdiffstats
path: root/routers/routes
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-08-29 09:20:35 +0800
committerGitHub <noreply@github.com>2017-08-29 09:20:35 +0800
commit15d3872281044cfd7aeaf17dae66f6b89078a55e (patch)
tree7448d940a6b1df68fd19376386e5eec15a02adb3 /routers/routes
parent019c90ab8f2ee1cf6b43d6a0c759e322b9859271 (diff)
downloadgitea-15d3872281044cfd7aeaf17dae66f6b89078a55e.tar.gz
gitea-15d3872281044cfd7aeaf17dae66f6b89078a55e.zip
fix missing orgnization discord webhook (#2414)
Diffstat (limited to 'routers/routes')
-rw-r--r--routers/routes/routes.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index c619c8b5af..a542094d0c 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -396,10 +396,12 @@ 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.Get("/:id", repo.WebHooksEdit)
m.Post("/gitea/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost)
m.Post("/gogs/:id", bindIgnErr(auth.NewGogshookForm{}), repo.GogsHooksEditPost)
m.Post("/slack/:id", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksEditPost)
+ m.Post("/discord/:id", bindIgnErr(auth.NewDiscordHookForm{}), repo.DiscordHooksEditPost)
})
m.Route("/delete", "GET,POST", org.SettingsDelete)