aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-07 18:53:03 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-07 18:53:03 +0100
commit3d446a26ada901331faaaf3be9083dfe6773b50a (patch)
tree35262fa99301db3f22ca6e61a84ce346ed4f4bb7 /server/controllers/api/v1
parent6a1e67b30a77b0e24314617f794a7122dd83c570 (diff)
downloadPeerTube-3d446a26ada901331faaaf3be9083dfe6773b50a.tar.gz
PeerTube-3d446a26ada901331faaaf3be9083dfe6773b50a.tar.zst
PeerTube-3d446a26ada901331faaaf3be9083dfe6773b50a.zip
Fix tests
Diffstat (limited to 'server/controllers/api/v1')
-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}