diff options
author | Unknwon <u@gogs.io> | 2015-08-26 18:03:30 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-26 18:03:30 +0800 |
commit | 1cb03135b745675e614b0b89ab3fde412276fec1 (patch) | |
tree | c376cdf2235e6061af6bb93c0ac1a53b6a80be28 /cmd | |
parent | 2f2bf20aaef444d0167a659c346fb545efbd7921 (diff) | |
download | gitea-1cb03135b745675e614b0b89ab3fde412276fec1.tar.gz gitea-1cb03135b745675e614b0b89ab3fde412276fec1.zip |
new repo git hooks UI
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 6 |
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() { |