diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 265417fd6bcd0dfc4762fda27d7821c89d0d10bb..290b78d80177a973184080369407ebd6b0384af3 100644 --- a/lib/api/groups.rb +++ b/lib/api/groups.rb @@ -66,7 +66,6 @@ module API present group, with: Entities::GroupDetail end - # Remove group # # Parameters: diff --git a/lib/api/projects.rb b/lib/api/projects.rb index cf357b23c406fbbd6074162794d559fe069a79f4..221f1f1e23ccac9696ff842f50db97a94bafb9e6 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -129,6 +129,16 @@ module API end end + # Remove project + # + # Parameters: + # id (required) - The ID of a project + # Example Request: + # DELETE /projects/:id + delete ":id" do + authorize! :remove_project, user_project + user_project.destroy + end # Mark this project as forked from another #