From 3d446a26ada901331faaaf3be9083dfe6773b50a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 7 Mar 2016 18:53:03 +0100 Subject: Fix tests --- server/controllers/api/v1/index.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/controllers/api/v1') diff --git a/server/controllers/api/v1/index.js b/server/controllers/api/v1/index.js index 07a68ed9d..abbc5eb60 100644 --- a/server/controllers/api/v1/index.js +++ b/server/controllers/api/v1/index.js @@ -11,7 +11,14 @@ var videosController = require('./videos') router.use('/pods', podsController) router.use('/remotevideos', remoteVideosController) router.use('/videos', videosController) +router.use('/*', badRequest) // --------------------------------------------------------------------------- module.exports = router + +// --------------------------------------------------------------------------- + +function badRequest (req, res, next) { + res.sendStatus(400) +} -- cgit v1.2.3