diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-01 00:16:14 +0800 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-01 00:16:14 +0800 |
commit | bf5595f9a0ee41a30ab04348e02d87ee9f53969a (patch) | |
tree | 93f58ac671e7e9cf1b8b978772075db5dd74928b /cmd/web.go | |
parent | 36661f53e6cb7bd5fe202157f794255d4d6932af (diff) | |
parent | 1ed67798acb532dd2e62d2f3cbdde7b34219bfec (diff) |
Merge branch 'dev' of github.com:gogits/gogs into dev
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) |