diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-09-01 00:12:58 +0800 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-09-01 00:12:58 +0800 |
commit | 1ed67798acb532dd2e62d2f3cbdde7b34219bfec (patch) | |
tree | 1ec707518cb37307cd05fa5cf6ef6bbf670caf9b /cmd/web.go | |
parent | 5e6091a30ae4befd68041aaff3f70d7334ce1b1c (diff) | |
parent | 2bce24068dc3c64ee5e501c48b7f080c48383970 (diff) |
Merge pull request #379 from compressed/slack
Slack Support
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -284,9 +284,11 @@ func runWeb(*cli.Context) { r.Route("/collaboration", "GET,POST", repo.SettingsCollaboration) r.Get("/hooks", repo.Webhooks) r.Get("/hooks/new", repo.WebHooksNew) - r.Post("/hooks/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost) + r.Post("/hooks/gogs/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost) + r.Post("/hooks/slack/new", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksNewPost) r.Get("/hooks/:id", repo.WebHooksEdit) - r.Post("/hooks/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) + r.Post("/hooks/gogs/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) + r.Post("/hooks/slack/:id", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksEditPost) }) }, reqSignIn, middleware.RepoAssignment(true), reqTrueOwner) |