@@ -437,15 +437,15 @@ func RegisterRoutes(m *macaron.Macaron) {
437
437
m .Post ("/delete" , admin .DeleteDefaultWebhook )
438
438
m .Get ("/:type/new" , repo .WebhooksNew )
439
439
m .Post ("/gitea/new" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksNewPost )
440
- m .Post ("/gogs/new" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksNewPost )
440
+ m .Post ("/gogs/new" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksNewPost )
441
441
m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
442
442
m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
443
443
m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
444
444
m .Post ("/telegram/new" , bindIgnErr (auth.NewTelegramHookForm {}), repo .TelegramHooksNewPost )
445
445
m .Post ("/msteams/new" , bindIgnErr (auth.NewMSTeamsHookForm {}), repo .MSTeamsHooksNewPost )
446
446
m .Get ("/:id" , repo .WebHooksEdit )
447
447
m .Post ("/gitea/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksEditPost )
448
- m .Post ("/gogs/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksEditPost )
448
+ m .Post ("/gogs/:id" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksEditPost )
449
449
m .Post ("/slack/:id" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksEditPost )
450
450
m .Post ("/discord/:id" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksEditPost )
451
451
m .Post ("/dingtalk/:id" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksEditPost )
@@ -578,7 +578,7 @@ func RegisterRoutes(m *macaron.Macaron) {
578
578
m .Post ("/delete" , org .DeleteWebhook )
579
579
m .Get ("/:type/new" , repo .WebhooksNew )
580
580
m .Post ("/gitea/new" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksNewPost )
581
- m .Post ("/gogs/new" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksNewPost )
581
+ m .Post ("/gogs/new" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksNewPost )
582
582
m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
583
583
m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
584
584
m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
@@ -636,7 +636,7 @@ func RegisterRoutes(m *macaron.Macaron) {
636
636
m .Post ("/delete" , repo .DeleteWebhook )
637
637
m .Get ("/:type/new" , repo .WebhooksNew )
638
638
m .Post ("/gitea/new" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksNewPost )
639
- m .Post ("/gogs/new" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksNewPost )
639
+ m .Post ("/gogs/new" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksNewPost )
640
640
m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
641
641
m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
642
642
m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
0 commit comments