diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-03-07 18:53:03 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-03-07 18:53:03 +0100 |
commit | 3d446a26ada901331faaaf3be9083dfe6773b50a (patch) | |
tree | 35262fa99301db3f22ca6e61a84ce346ed4f4bb7 /server/controllers/api | |
parent | 6a1e67b30a77b0e24314617f794a7122dd83c570 (diff) | |
download | PeerTube-3d446a26ada901331faaaf3be9083dfe6773b50a.tar.gz PeerTube-3d446a26ada901331faaaf3be9083dfe6773b50a.tar.zst PeerTube-3d446a26ada901331faaaf3be9083dfe6773b50a.zip |
Fix tests
Diffstat (limited to 'server/controllers/api')
-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 | } | ||