diff options
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 | ||