diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-08-28 13:06:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-28 13:06:45 +0800 |
commit | ced50e0ec13085504fa19c82f018a2eecb70ff68 (patch) | |
tree | 10dff3ff685a86bad683c731f8329743f217617e /routers/routes | |
parent | e41da3845d72e3adc7ae2cd3a02fc1f3943ebee6 (diff) | |
download | gitea-ced50e0ec13085504fa19c82f018a2eecb70ff68.tar.gz gitea-ced50e0ec13085504fa19c82f018a2eecb70ff68.zip |
Implementation of discord webhook (#2402)
* implementation of discord webhook
* fix webhooks
* fix typo and unnecessary color values
* fix typo
* fix imports and revert changes to webhook_slack.go
Diffstat (limited to 'routers/routes')
-rw-r--r-- | routers/routes/routes.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go index d765c4c03b..c619c8b5af 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -442,11 +442,13 @@ 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.DiscordHooksNewPost) m.Get("/:id", repo.WebHooksEdit) m.Post("/:id/test", repo.TestWebhook) m.Post("/gitea/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) m.Post("/gogs/:id", bindIgnErr(auth.NewGogshookForm{}), repo.GogsHooksNewPost) m.Post("/slack/:id", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksEditPost) + m.Post("/discord/:id", bindIgnErr(auth.NewDiscordHookForm{}), repo.DiscordHooksEditPost) m.Group("/git", func() { m.Get("", repo.GitHooks) |