Fix RESTfulness of project hook deletions by API

This commit is contained in:
Matt Humphrey 2013-02-20 11:35:36 +00:00
parent b7ac654b88
commit 33c513274d
3 changed files with 5 additions and 6 deletions

View file

@ -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