@@ -444,15 +444,15 @@ func RegisterRoutes(m *macaron.Macaron) {
444
444
m .Post ("/delete" , admin .DeleteDefaultWebhook )
445
445
m .Get ("/:type/new" , repo .WebhooksNew )
446
446
m .Post ("/gitea/new" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksNewPost )
447
- m .Post ("/gogs/new" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksNewPost )
447
+ m .Post ("/gogs/new" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksNewPost )
448
448
m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
449
449
m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
450
450
m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
451
451
m .Post ("/telegram/new" , bindIgnErr (auth.NewTelegramHookForm {}), repo .TelegramHooksNewPost )
452
452
m .Post ("/msteams/new" , bindIgnErr (auth.NewMSTeamsHookForm {}), repo .MSTeamsHooksNewPost )
453
453
m .Get ("/:id" , repo .WebHooksEdit )
454
454
m .Post ("/gitea/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksEditPost )
455
- m .Post ("/gogs/:id" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksEditPost )
455
+ m .Post ("/gogs/:id" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksEditPost )
456
456
m .Post ("/slack/:id" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksEditPost )
457
457
m .Post ("/discord/:id" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksEditPost )
458
458
m .Post ("/dingtalk/:id" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksEditPost )
@@ -585,7 +585,7 @@ func RegisterRoutes(m *macaron.Macaron) {
585
585
m .Post ("/delete" , org .DeleteWebhook )
586
586
m .Get ("/:type/new" , repo .WebhooksNew )
587
587
m .Post ("/gitea/new" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksNewPost )
588
- m .Post ("/gogs/new" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksNewPost )
588
+ m .Post ("/gogs/new" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksNewPost )
589
589
m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
590
590
m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
591
591
m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
@@ -647,7 +647,7 @@ func RegisterRoutes(m *macaron.Macaron) {
647
647
m .Post ("/delete" , repo .DeleteWebhook )
648
648
m .Get ("/:type/new" , repo .WebhooksNew )
649
649
m .Post ("/gitea/new" , bindIgnErr (auth.NewWebhookForm {}), repo .WebHooksNewPost )
650
- m .Post ("/gogs/new" , bindIgnErr (auth.NewWebhookForm {}), repo .GogsHooksNewPost )
650
+ m .Post ("/gogs/new" , bindIgnErr (auth.NewGogshookForm {}), repo .GogsHooksNewPost )
651
651
m .Post ("/slack/new" , bindIgnErr (auth.NewSlackHookForm {}), repo .SlackHooksNewPost )
652
652
m .Post ("/discord/new" , bindIgnErr (auth.NewDiscordHookForm {}), repo .DiscordHooksNewPost )
653
653
m .Post ("/dingtalk/new" , bindIgnErr (auth.NewDingtalkHookForm {}), repo .DingtalkHooksNewPost )
0 commit comments