diff options
author | Matt Humphrey <matt@tomatto.co.uk> | 2013-02-20 11:35:36 +0000 |
---|---|---|
committer | Matt Humphrey <matt@tomatto.co.uk> | 2013-02-20 11:35:36 +0000 |
commit | 33c513274d2201787d592850e60a018b777e0c43 (patch) | |
tree | f74c380235742f07d1a5f86230fa49662ddf0a97 /lib/api | |
parent | b7ac654b88aa9b03f431d93c25e397ff2bc66a7a (diff) | |
download | gitlab-ce-33c513274d2201787d592850e60a018b777e0c43.tar.gz |
Fix RESTfulness of project hook deletions by API
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/projects.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 921aa237f26..631ed535459 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -205,8 +205,8 @@ module Gitlab # id (required) - The ID of a project # hook_id (required) - The ID of hook to delete # Example Request: - # DELETE /projects/:id/hooks - delete ":id/hooks" do + # DELETE /projects/:id/hooks/:hook_id + delete ":id/hooks/:hook_id" do authorize! :admin_project, user_project @hook = user_project.hooks.find(params[:hook_id]) @hook.destroy |