diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-16 02:38:44 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2020-01-15 13:38:44 -0500 |
commit | 9343d2fc857e884180e03c7f42767302cec0f06d (patch) | |
tree | 96eaa7288b844cbda77b9b5b21eed91acbda1062 /routers/routes | |
parent | f162a3260430f35864b346892dee4cea150f4442 (diff) | |
download | gitea-9343d2fc857e884180e03c7f42767302cec0f06d.tar.gz gitea-9343d2fc857e884180e03c7f42767302cec0f06d.zip |
Fix missing msteam webhook on organization (#9781)
Diffstat (limited to 'routers/routes')
-rw-r--r-- | routers/routes/routes.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 2f886f749d..58a2da82fc 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -455,7 +455,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Post("/discord/:id", bindIgnErr(auth.NewDiscordHookForm{}), repo.DiscordHooksEditPost) m.Post("/dingtalk/:id", bindIgnErr(auth.NewDingtalkHookForm{}), repo.DingtalkHooksEditPost) m.Post("/telegram/:id", bindIgnErr(auth.NewTelegramHookForm{}), repo.TelegramHooksEditPost) - m.Post("/msteams/:id", bindIgnErr(auth.NewMSTeamsHookForm{}), repo.MSTeamsHooksNewPost) + m.Post("/msteams/:id", bindIgnErr(auth.NewMSTeamsHookForm{}), repo.MSTeamsHooksEditPost) }) m.Group("/auths", func() { @@ -563,6 +563,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Post("/discord/new", bindIgnErr(auth.NewDiscordHookForm{}), repo.DiscordHooksNewPost) m.Post("/dingtalk/new", bindIgnErr(auth.NewDingtalkHookForm{}), repo.DingtalkHooksNewPost) m.Post("/telegram/new", bindIgnErr(auth.NewTelegramHookForm{}), repo.TelegramHooksNewPost) + m.Post("/msteams/new", bindIgnErr(auth.NewMSTeamsHookForm{}), repo.MSTeamsHooksNewPost) m.Get("/:id", repo.WebHooksEdit) m.Post("/gitea/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) m.Post("/gogs/:id", bindIgnErr(auth.NewGogshookForm{}), repo.GogsHooksEditPost) @@ -570,6 +571,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Post("/discord/:id", bindIgnErr(auth.NewDiscordHookForm{}), repo.DiscordHooksEditPost) m.Post("/dingtalk/:id", bindIgnErr(auth.NewDingtalkHookForm{}), repo.DingtalkHooksEditPost) m.Post("/telegram/:id", bindIgnErr(auth.NewTelegramHookForm{}), repo.TelegramHooksEditPost) + m.Post("/msteams/:id", bindIgnErr(auth.NewMSTeamsHookForm{}), repo.MSTeamsHooksEditPost) }) m.Route("/delete", "GET,POST", org.SettingsDelete) |