aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-05 20:52:25 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-05 20:52:25 -0400
commit24f614f6db13e5c6720efa518641ffcdcb0d8947 (patch)
tree523d1d93079bed85b75859b51bff408797ed4aae /cmd
parentcb505b22ec5133ffe3263f3857fdcd64fa64260b (diff)
downloadgitea-24f614f6db13e5c6720efa518641ffcdcb0d8947.tar.gz
gitea-24f614f6db13e5c6720efa518641ffcdcb0d8947.zip
Finish add web hook
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 855ce7721c..be489c1be4 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -174,6 +174,7 @@ func runWeb(*cli.Context) {
r.Post("/settings/collaboration", repo.CollaborationPost)
r.Get("/settings/hooks", repo.WebHooks) // TODO
r.Get("/settings/hooks/add", repo.WebHooksAdd)
+ r.Post("/settings/hooks/add", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksAddPost)
r.Get("/settings/hooks/id", repo.WebHooksEdit)
}, reqSignIn, middleware.RepoAssignment(true), reqOwner())