]>
Commit | Line | Data |
---|---|---|
55fa55a9 C |
1 | 'use strict' |
2 | ||
3 | const checkErrors = require('../utils').checkErrors | |
4 | const logger = require('../../../helpers/logger') | |
5 | ||
6 | const validatorsRemoteVideos = { | |
7 | remoteVideos | |
8 | } | |
9 | ||
10 | function remoteVideos (req, res, next) { | |
11 | req.checkBody('data').isEachRemoteRequestVideosValid() | |
12 | ||
13 | logger.debug('Checking remoteVideos parameters', { parameters: req.body }) | |
14 | ||
15 | checkErrors(req, res, next) | |
16 | } | |
17 | ||
18 | // --------------------------------------------------------------------------- | |
19 | ||
20 | module.exports = validatorsRemoteVideos |