diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-09 15:40:10 -0700 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-09 15:40:10 -0700 |
commit | 9a1d5d2489d25778e26ab413cb9ee78d3fe2823a (patch) | |
tree | 4e31de40d92b96ba9fa8f45e5da442291303832e /cmd/web.go | |
parent | 9820b8e1342017edfe4f6ced9cc3a7d811449c7b (diff) | |
download | gitea-9a1d5d2489d25778e26ab413cb9ee78d3fe2823a.tar.gz gitea-9a1d5d2489d25778e26ab413cb9ee78d3fe2823a.zip |
Finish new web hook pages
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 474e86b3e3..dcfe95003e 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -256,8 +256,8 @@ func runWeb(*cli.Context) { m.Group("/settings", func(r *macaron.Router) { r.Route("/collaboration", "GET,POST", repo.SettingsCollaboration) r.Get("/hooks", repo.Webhooks) - r.Get("/hooks/new", repo.WebHooksAdd) - r.Post("/hooks/add", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksAddPost) + r.Get("/hooks/new", repo.WebHooksNew) + r.Post("/hooks/new", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksNewPost) r.Get("/hooks/:id", repo.WebHooksEdit) r.Post("/hooks/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) }) |