From 404867f206f97ec4ea2e6032fea47bc0499d3497 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 5 Dec 2015 13:24:13 -0500 Subject: fix #2105 and fix #1857 --- cmd/web.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index ad9ba76f..0fb57bbd 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -397,6 +397,7 @@ func runWeb(ctx *cli.Context) { m.Post("/gogs/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost) m.Post("/slack/new", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksNewPost) m.Get("/:id", repo.WebHooksEdit) + m.Post("/:id/test", repo.TestWebhook) m.Post("/gogs/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) m.Post("/slack/:id", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksEditPost) -- cgit v1.2.3