@@ -554,6 +554,7 @@ func RegisterRoutes(m *web.Route) {
554
554
m .Post ("/matrix/new" , bindIgnErr (forms.NewMatrixHookForm {}), repo .MatrixHooksNewPost )
555
555
m .Post ("/msteams/new" , bindIgnErr (forms.NewMSTeamsHookForm {}), repo .MSTeamsHooksNewPost )
556
556
m .Post ("/feishu/new" , bindIgnErr (forms.NewFeishuHookForm {}), repo .FeishuHooksNewPost )
557
+ m .Post ("/wechatwork/new" , bindIgnErr (forms.NewWechatWorkHookForm {}), repo .WechatworkHooksNewPost )
557
558
m .Get ("/{id}" , repo .WebHooksEdit )
558
559
m .Post ("/gitea/{id}" , bindIgnErr (forms.NewWebhookForm {}), repo .WebHooksEditPost )
559
560
m .Post ("/gogs/{id}" , bindIgnErr (forms.NewGogshookForm {}), repo .GogsHooksEditPost )
@@ -564,6 +565,7 @@ func RegisterRoutes(m *web.Route) {
564
565
m .Post ("/matrix/{id}" , bindIgnErr (forms.NewMatrixHookForm {}), repo .MatrixHooksEditPost )
565
566
m .Post ("/msteams/{id}" , bindIgnErr (forms.NewMSTeamsHookForm {}), repo .MSTeamsHooksEditPost )
566
567
m .Post ("/feishu/{id}" , bindIgnErr (forms.NewFeishuHookForm {}), repo .FeishuHooksEditPost )
568
+ m .Post ("/wechatwork/{id}" , bindIgnErr (forms.NewWechatWorkHookForm {}), repo .WechatworkHooksEditPost )
567
569
}, webhooksEnabled )
568
570
569
571
m .Group ("/labels" , func () {
0 commit comments