diff options
author | Oswaldo <oswaldo@gitlab.com> | 2017-02-22 14:37:13 -0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-02-23 19:55:13 -0300 |
commit | 2b001d9e7a2136a6d670576843a953115a5c7c25 (patch) | |
tree | 37fbbc6ed8001b30bc9939045d0e9e7695837dba /lib/api/projects.rb | |
parent | 2fb3fcf0c0446c9a1568e26e81d49f3b5ce159dc (diff) | |
download | gitlab-ce-2b001d9e7a2136a6d670576843a953115a5c7c25.tar.gz |
Return 202 with JSON body on async removals on V4 API3874-correctly-return-json-on-delete-responses
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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' |