aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/remoteVideos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-13 16:13:00 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-13 16:13:00 +0200
commit5dda52c924763a889e98b4cf97c588b34ef01812 (patch)
tree0616e61d825dbfee6e0183555e47cdb7b1d7f472 /server/controllers/api/v1/remoteVideos.js
parent788a7e02029efae7c44bc4ec608493f67dac291a (diff)
downloadPeerTube-5dda52c924763a889e98b4cf97c588b34ef01812.tar.gz
PeerTube-5dda52c924763a889e98b4cf97c588b34ef01812.tar.zst
PeerTube-5dda52c924763a889e98b4cf97c588b34ef01812.zip
Remove the cache middleware
Diffstat (limited to 'server/controllers/api/v1/remoteVideos.js')
-rw-r--r--server/controllers/api/v1/remoteVideos.js3
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
6const middleware = require('../../../middlewares') 6const middleware = require('../../../middlewares')
7const secureMiddleware = middleware.secure 7const secureMiddleware = middleware.secure
8const cacheMiddleware = middleware.cache
9const reqValidator = middleware.reqValidators.remote 8const reqValidator = middleware.reqValidators.remote
10const logger = require('../../../helpers/logger') 9const logger = require('../../../helpers/logger')
11const Videos = require('../../../models/videos') 10const 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