summaryrefslogtreecommitdiff
path: root/lib/api/wikis.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/wikis.rb')
-rw-r--r--lib/api/wikis.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/wikis.rb b/lib/api/wikis.rb
index eb36779e1d7..a2146406690 100644
--- a/lib/api/wikis.rb
+++ b/lib/api/wikis.rb
@@ -107,8 +107,9 @@ module API
delete ':id/wikis/:slug' do
authorize! :admin_wiki, user_project
- status 204
WikiPages::DestroyService.new(user_project, current_user).execute(wiki_page)
+
+ no_content!
end
desc 'Upload an attachment to the wiki repository' do