Fix RESTfulness of project hook deletions by API
This commit is contained in:
parent
b7ac654b88
commit
33c513274d
3 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue