aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/pods.js
diff options
context:
space:
mode:
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