summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-26 18:03:30 +0800
committerUnknwon <u@gogs.io>2015-08-26 18:03:30 +0800
commit1cb03135b745675e614b0b89ab3fde412276fec1 (patch)
treec376cdf2235e6061af6bb93c0ac1a53b6a80be28 /cmd
parent2f2bf20aaef444d0167a659c346fb545efbd7921 (diff)
downloadgitea-1cb03135b745675e614b0b89ab3fde412276fec1.tar.gz
gitea-1cb03135b745675e614b0b89ab3fde412276fec1.zip
new repo git hooks UI
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 6d78047700..0093600902 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -446,9 +446,9 @@ func runWeb(ctx *cli.Context) {
m.Post("/hooks/slack/:id", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksEditPost)
m.Group("/hooks/git", func() {
- m.Get("", repo.GitHooks)
- m.Get("/:name", repo.GitHooksEdit)
- m.Post("/:name", repo.GitHooksEditPost)
+ m.Get("", repo.SettingsGitHooks)
+ m.Combo("/:name").Get(repo.SettingsGitHooksEdit).
+ Post(repo.SettingsGitHooksEditPost)
}, middleware.GitHookService())
m.Group("/keys", func() {