diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-01 16:16:40 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-01 16:16:40 +0200 |
commit | fc51fde048f2c3ce1dd3e85f5528335040bae894 (patch) | |
tree | 6de1eeac1291d9398cc99cda926b189c39b3ea0b /server/controllers/api/v1/remote.js | |
parent | 69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd (diff) | |
download | PeerTube-fc51fde048f2c3ce1dd3e85f5528335040bae894.tar.gz PeerTube-fc51fde048f2c3ce1dd3e85f5528335040bae894.tar.zst PeerTube-fc51fde048f2c3ce1dd3e85f5528335040bae894.zip |
reqValidators --> validators
Diffstat (limited to 'server/controllers/api/v1/remote.js')
-rw-r--r-- | server/controllers/api/v1/remote.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/api/v1/remote.js b/server/controllers/api/v1/remote.js index 2d71c605d..7af9b7e84 100644 --- a/server/controllers/api/v1/remote.js +++ b/server/controllers/api/v1/remote.js | |||
@@ -6,17 +6,17 @@ const mongoose = require('mongoose') | |||
6 | 6 | ||
7 | const middlewares = require('../../../middlewares') | 7 | const middlewares = require('../../../middlewares') |
8 | const secureMiddleware = middlewares.secure | 8 | const secureMiddleware = middlewares.secure |
9 | const reqValidator = middlewares.reqValidators.remote | 9 | const validators = middlewares.validators.remote |
10 | const logger = require('../../../helpers/logger') | 10 | const logger = require('../../../helpers/logger') |
11 | 11 | ||
12 | const router = express.Router() | 12 | const router = express.Router() |
13 | const Video = mongoose.model('Video') | 13 | const Video = mongoose.model('Video') |
14 | 14 | ||
15 | router.post('/videos', | 15 | router.post('/videos', |
16 | reqValidator.signature, | 16 | validators.signature, |
17 | reqValidator.dataToDecrypt, | 17 | validators.dataToDecrypt, |
18 | secureMiddleware.decryptBody, | 18 | secureMiddleware.decryptBody, |
19 | reqValidator.remoteVideos, | 19 | validators.remoteVideos, |
20 | remoteVideos | 20 | remoteVideos |
21 | ) | 21 | ) |
22 | 22 | ||