diff options
Diffstat (limited to 'server/controllers/api/v1')
-rw-r--r-- | server/controllers/api/v1/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
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') | |||
11 | router.use('/pods', podsController) | 11 | router.use('/pods', podsController) |
12 | router.use('/remotevideos', remoteVideosController) | 12 | router.use('/remotevideos', remoteVideosController) |
13 | router.use('/videos', videosController) | 13 | router.use('/videos', videosController) |
14 | router.use('/*', badRequest) | ||
14 | 15 | ||
15 | // --------------------------------------------------------------------------- | 16 | // --------------------------------------------------------------------------- |
16 | 17 | ||
17 | module.exports = router | 18 | module.exports = router |
19 | |||
20 | // --------------------------------------------------------------------------- | ||
21 | |||
22 | function badRequest (req, res, next) { | ||
23 | res.sendStatus(400) | ||
24 | } | ||