summaryrefslogtreecommitdiff
path: root/lib/api/applications.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/applications.rb')
-rw-r--r--lib/api/applications.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/applications.rb b/lib/api/applications.rb
index b883f83cc19..be482272b20 100644
--- a/lib/api/applications.rb
+++ b/lib/api/applications.rb
@@ -41,6 +41,8 @@ module API
desc 'Delete an application'
delete ':id' do
application = ApplicationsFinder.new(params).execute
+ break not_found!('Application') unless application
+
application.destroy
no_content!