diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 16:13:00 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-13 16:13:00 +0200 |
commit | 5dda52c924763a889e98b4cf97c588b34ef01812 (patch) | |
tree | 0616e61d825dbfee6e0183555e47cdb7b1d7f472 /server/controllers/api/v1/pods.js | |
parent | 788a7e02029efae7c44bc4ec608493f67dac291a (diff) | |
download | PeerTube-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.js | 9 |
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') | |||
5 | const logger = require('../../../helpers/logger') | 5 | const logger = require('../../../helpers/logger') |
6 | const friends = require('../../../lib/friends') | 6 | const friends = require('../../../lib/friends') |
7 | const middleware = require('../../../middlewares') | 7 | const middleware = require('../../../middlewares') |
8 | const cacheMiddleware = middleware.cache | ||
9 | const Pods = require('../../../models/pods') | 8 | const Pods = require('../../../models/pods') |
10 | const reqValidator = middleware.reqValidators.pods | 9 | const reqValidator = middleware.reqValidators.pods |
11 | const secureMiddleware = middleware.secure | 10 | const secureMiddleware = middleware.secure |
@@ -15,10 +14,10 @@ const Videos = require('../../../models/videos') | |||
15 | 14 | ||
16 | const router = express.Router() | 15 | const router = express.Router() |
17 | 16 | ||
18 | router.get('/', cacheMiddleware.cache(false), listPods) | 17 | router.get('/', listPods) |
19 | router.post('/', reqValidator.podsAdd, cacheMiddleware.cache(false), addPods) | 18 | router.post('/', reqValidator.podsAdd, addPods) |
20 | router.get('/makefriends', reqValidator.makeFriends, cacheMiddleware.cache(false), makeFriends) | 19 | router.get('/makefriends', reqValidator.makeFriends, makeFriends) |
21 | router.get('/quitfriends', cacheMiddleware.cache(false), quitFriends) | 20 | router.get('/quitfriends', quitFriends) |
22 | // Post because this is a secured request | 21 | // Post because this is a secured request |
23 | router.post('/remove', secureRequest, secureMiddleware.decryptBody, removePods) | 22 | router.post('/remove', secureRequest, secureMiddleware.decryptBody, removePods) |
24 | 23 | ||