aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/pods.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/pods.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/pods.js')
-rw-r--r--server/controllers/api/v1/pods.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js
index b16fea4f6..fd13034a2 100644
--- a/server/controllers/api/v1/pods.js
+++ b/server/controllers/api/v1/pods.js
@@ -5,7 +5,6 @@ const express = require('express')
5const logger = require('../../../helpers/logger') 5const logger = require('../../../helpers/logger')
6const friends = require('../../../lib/friends') 6const friends = require('../../../lib/friends')
7const middleware = require('../../../middlewares') 7const middleware = require('../../../middlewares')
8const cacheMiddleware = middleware.cache
9const Pods = require('../../../models/pods') 8const Pods = require('../../../models/pods')
10const reqValidator = middleware.reqValidators.pods 9const reqValidator = middleware.reqValidators.pods
11const secureMiddleware = middleware.secure 10const secureMiddleware = middleware.secure
@@ -15,10 +14,10 @@ const Videos = require('../../../models/videos')
15 14
16const router = express.Router() 15const router = express.Router()
17 16
18router.get('/', cacheMiddleware.cache(false), listPods) 17router.get('/', listPods)
19router.post('/', reqValidator.podsAdd, cacheMiddleware.cache(false), addPods) 18router.post('/', reqValidator.podsAdd, addPods)
20router.get('/makefriends', reqValidator.makeFriends, cacheMiddleware.cache(false), makeFriends) 19router.get('/makefriends', reqValidator.makeFriends, makeFriends)
21router.get('/quitfriends', cacheMiddleware.cache(false), quitFriends) 20router.get('/quitfriends', quitFriends)
22// Post because this is a secured request 21// Post because this is a secured request
23router.post('/remove', secureRequest, secureMiddleware.decryptBody, removePods) 22router.post('/remove', secureRequest, secureMiddleware.decryptBody, removePods)
24 23