From 2b001d9e7a2136a6d670576843a953115a5c7c25 Mon Sep 17 00:00:00 2001 From: Oswaldo Date: Wed, 22 Feb 2017 14:37:13 -0300 Subject: Return 202 with JSON body on async removals on V4 API --- lib/api/projects.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/api/projects.rb') diff --git a/lib/api/projects.rb b/lib/api/projects.rb index e7b891bd92e..b89bddc7e29 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -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' -- cgit v1.2.1