aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/remote.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-07-01 16:16:40 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-07-01 16:16:40 +0200
commitfc51fde048f2c3ce1dd3e85f5528335040bae894 (patch)
tree6de1eeac1291d9398cc99cda926b189c39b3ea0b /server/controllers/api/v1/remote.js
parent69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd (diff)
downloadPeerTube-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.js8
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
7const middlewares = require('../../../middlewares') 7const middlewares = require('../../../middlewares')
8const secureMiddleware = middlewares.secure 8const secureMiddleware = middlewares.secure
9const reqValidator = middlewares.reqValidators.remote 9const validators = middlewares.validators.remote
10const logger = require('../../../helpers/logger') 10const logger = require('../../../helpers/logger')
11 11
12const router = express.Router() 12const router = express.Router()
13const Video = mongoose.model('Video') 13const Video = mongoose.model('Video')
14 14
15router.post('/videos', 15router.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