summaryrefslogtreecommitdiff
path: root/lib/api/api.rb
diff options
context:
space:
mode:
authorLinus G Thiel <linus@yesbabyyes.se>2016-10-11 09:22:57 +0200
committerLinus G Thiel <linus@yesbabyyes.se>2016-10-11 09:22:57 +0200
commitd0c240b64fbb5f723a630fe96af380a9c82fd1b1 (patch)
tree948d99b9381f2714656eb61b5c6492bad7cf8c0c /lib/api/api.rb
parentf7f42914e27241d4cfbf13bbb806f928be67e84f (diff)
parent73adae0f62a3d6048abbee9d076e077185370325 (diff)
downloadgitlab-ce-d0c240b64fbb5f723a630fe96af380a9c82fd1b1.tar.gz
Merge branch 'master' into 22211-500-instead-of-404
Diffstat (limited to 'lib/api/api.rb')
-rw-r--r--lib/api/api.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/api.rb b/lib/api/api.rb
index cb47ec8f33f..99722a0a65c 100644
--- a/lib/api/api.rb
+++ b/lib/api/api.rb
@@ -43,6 +43,7 @@ module API
mount ::API::Groups
mount ::API::Internal
mount ::API::Issues
+ mount ::API::Boards
mount ::API::Keys
mount ::API::Labels
mount ::API::LicenseTemplates
@@ -72,5 +73,9 @@ module API
mount ::API::Triggers
mount ::API::Users
mount ::API::Variables
+
+ route :any, '*path' do
+ error!('404 Not Found', 404)
+ end
end
end