diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-09-07 19:30:51 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-09-07 19:30:51 -0400 |
commit | e79e4b158090bf7c5dd86ac21cd0dbf44fbc82bd (patch) | |
tree | aec4d8a53265080363b3ab7a4423bc0820133ea5 /cmd | |
parent | 40bc130b19cf71a997d5073a2587ea2649128bf8 (diff) | |
parent | f7be61c81935a30c21797351db5da32183e3188d (diff) | |
download | gitea-e79e4b158090bf7c5dd86ac21cd0dbf44fbc82bd.tar.gz gitea-e79e4b158090bf7c5dd86ac21cd0dbf44fbc82bd.zip |
Merge pull request #442 from compressed/org_hook
Organization-level Webhooks
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index cad1db336b..8182d7b561 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -261,6 +261,13 @@ func runWeb(*cli.Context) { m.Group("/settings", func(r *macaron.Router) { r.Get("", org.Settings) r.Post("", bindIgnErr(auth.UpdateOrgSettingForm{}), org.SettingsPost) + r.Get("/hooks", org.SettingsHooks) + r.Get("/hooks/new", repo.WebHooksNew) + 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/gogs/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) + r.Post("/hooks/slack/:id", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksEditPost) r.Route("/delete", "GET,POST", org.SettingsDelete) }) |