diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-11-25 17:25:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 04:25:25 -0500 |
commit | edd37e9d4ab0062b4d59ffac74cb085af9d06cd4 (patch) | |
tree | 4ae8c4eb8fcb452f1d22eb85ae07b3738e67e59d /routers | |
parent | af901a4ca94603c8a379d2585758d89522430f8d (diff) | |
download | gitea-edd37e9d4ab0062b4d59ffac74cb085af9d06cd4.tar.gz gitea-edd37e9d4ab0062b4d59ffac74cb085af9d06cd4.zip |
Fix org webchatwork webhook (#17810)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/web.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/web/web.go b/routers/web/web.go index f84d357bb1..ebced6942f 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -554,6 +554,7 @@ func RegisterRoutes(m *web.Route) { m.Post("/matrix/new", bindIgnErr(forms.NewMatrixHookForm{}), repo.MatrixHooksNewPost) m.Post("/msteams/new", bindIgnErr(forms.NewMSTeamsHookForm{}), repo.MSTeamsHooksNewPost) m.Post("/feishu/new", bindIgnErr(forms.NewFeishuHookForm{}), repo.FeishuHooksNewPost) + m.Post("/wechatwork/new", bindIgnErr(forms.NewWechatWorkHookForm{}), repo.WechatworkHooksNewPost) m.Get("/{id}", repo.WebHooksEdit) m.Post("/gitea/{id}", bindIgnErr(forms.NewWebhookForm{}), repo.WebHooksEditPost) m.Post("/gogs/{id}", bindIgnErr(forms.NewGogshookForm{}), repo.GogsHooksEditPost) @@ -564,6 +565,7 @@ func RegisterRoutes(m *web.Route) { m.Post("/matrix/{id}", bindIgnErr(forms.NewMatrixHookForm{}), repo.MatrixHooksEditPost) m.Post("/msteams/{id}", bindIgnErr(forms.NewMSTeamsHookForm{}), repo.MSTeamsHooksEditPost) m.Post("/feishu/{id}", bindIgnErr(forms.NewFeishuHookForm{}), repo.FeishuHooksEditPost) + m.Post("/wechatwork/{id}", bindIgnErr(forms.NewWechatWorkHookForm{}), repo.WechatworkHooksEditPost) }, webhooksEnabled) m.Group("/labels", func() { |