Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Humphrey <matt@tomatto.co.uk>2013-02-20 15:35:36 +0400
committerMatt Humphrey <matt@tomatto.co.uk>2013-02-20 15:35:36 +0400
commit33c513274d2201787d592850e60a018b777e0c43 (patch)
treef74c380235742f07d1a5f86230fa49662ddf0a97 /lib/api/projects.rb
parentb7ac654b88aa9b03f431d93c25e397ff2bc66a7a (diff)
Fix RESTfulness of project hook deletions by API
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb4
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