aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/remote.js
diff options
context:
space:
mode:
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