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