diff --git a/lib/api/groups.rb b/lib/api/groups.rb index 265417f..290b78d 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 cf357b2..221f1f1 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 # -- libgit2 0.21.2