Return 202 with JSON body on async removals on V4 API

This commit is contained in:
Oswaldo
2017-02-22 14:37:13 -03:00
committed by Oswaldo Ferreira
parent 2fb3fcf0c0
commit 2b001d9e7a
9 changed files with 51 additions and 5 deletions

View File

@ -282,6 +282,8 @@ module API
delete ":id" do
authorize! :remove_project, user_project
::Projects::DestroyService.new(user_project, current_user, {}).async_execute
accepted!
end
desc 'Mark this project as forked from another'