diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/remote/videos.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/server/middlewares/validators/remote/videos.js b/server/middlewares/validators/remote/videos.js index cf9925b6c..ddc274c45 100644 --- a/server/middlewares/validators/remote/videos.js +++ b/server/middlewares/validators/remote/videos.js | |||
@@ -4,7 +4,8 @@ const checkErrors = require('../utils').checkErrors | |||
4 | const logger = require('../../../helpers/logger') | 4 | const logger = require('../../../helpers/logger') |
5 | 5 | ||
6 | const validatorsRemoteVideos = { | 6 | const validatorsRemoteVideos = { |
7 | remoteVideos | 7 | remoteVideos, |
8 | remoteQaduVideos | ||
8 | } | 9 | } |
9 | 10 | ||
10 | function remoteVideos (req, res, next) { | 11 | function remoteVideos (req, res, next) { |
@@ -15,6 +16,14 @@ function remoteVideos (req, res, next) { | |||
15 | checkErrors(req, res, next) | 16 | checkErrors(req, res, next) |
16 | } | 17 | } |
17 | 18 | ||
19 | function remoteQaduVideos (req, res, next) { | ||
20 | req.checkBody('data').isEachRemoteRequestVideosQaduValid() | ||
21 | |||
22 | logger.debug('Checking remoteVideosQadu parameters', { parameters: req.body }) | ||
23 | |||
24 | checkErrors(req, res, next) | ||
25 | } | ||
26 | |||
18 | // --------------------------------------------------------------------------- | 27 | // --------------------------------------------------------------------------- |
19 | 28 | ||
20 | module.exports = validatorsRemoteVideos | 29 | module.exports = validatorsRemoteVideos |