summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2013-05-07 00:09:23 +0500
committerNihad Abbasov <narkoz.2008@gmail.com>2013-05-07 00:09:23 +0500
commit77d0e41df00c45aaafdec5fd6cdddce003c29445 (patch)
treee75df356b263caf2a1fe9ec42da01ee08c394414 /lib/api
parent8b65d069cce294ddc3450862e8066b1dbf6695da (diff)
downloadgitlab-ce-77d0e41df00c45aaafdec5fd6cdddce003c29445.tar.gz
fix API route to delete project hook
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 53fd91dcca8..18e912ff48e 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -274,7 +274,7 @@ module Gitlab
# hook_id (required) - The ID of hook to delete
# Example Request:
# DELETE /projects/:id/hooks/:hook_id
- delete ":id/hooks" do
+ delete ":id/hooks/:hook_id" do
authorize! :admin_project, user_project
required_attributes! [:hook_id]