summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-06 17:50:00 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-06 17:50:00 -0400
commit64c68220d203cb07be001184cde4b35d4b503344 (patch)
tree1355846382ff21a2b1a3de606da3d9979a479dc8 /cmd
parent91e5c24a314170490139d661a921d94b8ab0555b (diff)
downloadgitea-64c68220d203cb07be001184cde4b35d4b503344.tar.gz
gitea-64c68220d203cb07be001184cde4b35d4b503344.zip
Fix #264
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 72a58bc995..810e36d3bb 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -313,6 +313,12 @@ func runWeb(*cli.Context) {
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)
+
+ m.Group("/hooks/git", func(r *macaron.Router) {
+ r.Get("", repo.GitHooks)
+ r.Get("/:name", repo.GitHooksEdit)
+ r.Post("/:name", repo.GitHooksEditPost)
+ }, middleware.GitHookService())
})
}, reqSignIn, middleware.RepoAssignment(true), reqTrueOwner)