diff options
Diffstat (limited to 'server/controllers/api/v1/remoteVideos.js')
-rw-r--r-- | server/controllers/api/v1/remoteVideos.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/controllers/api/v1/remoteVideos.js b/server/controllers/api/v1/remoteVideos.js index 7da9f0105..cc4bc41e2 100644 --- a/server/controllers/api/v1/remoteVideos.js +++ b/server/controllers/api/v1/remoteVideos.js | |||
@@ -5,7 +5,6 @@ const map = require('lodash/map') | |||
5 | 5 | ||
6 | const middleware = require('../../../middlewares') | 6 | const middleware = require('../../../middlewares') |
7 | const secureMiddleware = middleware.secure | 7 | const secureMiddleware = middleware.secure |
8 | const cacheMiddleware = middleware.cache | ||
9 | const reqValidator = middleware.reqValidators.remote | 8 | const reqValidator = middleware.reqValidators.remote |
10 | const logger = require('../../../helpers/logger') | 9 | const logger = require('../../../helpers/logger') |
11 | const Videos = require('../../../models/videos') | 10 | const Videos = require('../../../models/videos') |
@@ -17,7 +16,6 @@ router.post('/add', | |||
17 | reqValidator.secureRequest, | 16 | reqValidator.secureRequest, |
18 | secureMiddleware.decryptBody, | 17 | secureMiddleware.decryptBody, |
19 | reqValidator.remoteVideosAdd, | 18 | reqValidator.remoteVideosAdd, |
20 | cacheMiddleware.cache(false), | ||
21 | addRemoteVideos | 19 | addRemoteVideos |
22 | ) | 20 | ) |
23 | 21 | ||
@@ -25,7 +23,6 @@ router.post('/remove', | |||
25 | reqValidator.secureRequest, | 23 | reqValidator.secureRequest, |
26 | secureMiddleware.decryptBody, | 24 | secureMiddleware.decryptBody, |
27 | reqValidator.remoteVideosRemove, | 25 | reqValidator.remoteVideosRemove, |
28 | cacheMiddleware.cache(false), | ||
29 | removeRemoteVideo | 26 | removeRemoteVideo |
30 | ) | 27 | ) |
31 | 28 | ||