diff options
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 | ||