diff options
Diffstat (limited to 'routes/api/v1/pods.js')
-rw-r--r-- | routes/api/v1/pods.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/routes/api/v1/pods.js b/routes/api/v1/pods.js index 8ae676834..2bb8f89ab 100644 --- a/routes/api/v1/pods.js +++ b/routes/api/v1/pods.js | |||
@@ -4,7 +4,8 @@ | |||
4 | var express = require('express') | 4 | var express = require('express') |
5 | var router = express.Router() | 5 | var router = express.Router() |
6 | var middleware = require('../../../middlewares') | 6 | var middleware = require('../../../middlewares') |
7 | var reqValidator = require('../../../middlewares/reqValidators').pods | 7 | var miscMiddleware = middleware.misc |
8 | var reqValidator = middleware.reqValidators.pods | ||
8 | var pods = require('../../../src/pods') | 9 | var pods = require('../../../src/pods') |
9 | 10 | ||
10 | function listPods (req, res, next) { | 11 | function listPods (req, res, next) { |
@@ -31,9 +32,9 @@ | |||
31 | }) | 32 | }) |
32 | } | 33 | } |
33 | 34 | ||
34 | router.get('/', middleware.cache(false), listPods) | 35 | router.get('/', miscMiddleware.cache(false), listPods) |
35 | router.get('/makefriends', middleware.cache(false), makeFriends) | 36 | router.get('/makefriends', miscMiddleware.cache(false), makeFriends) |
36 | router.post('/', reqValidator.podsAdd, middleware.cache(false), addPods) | 37 | router.post('/', reqValidator.podsAdd, miscMiddleware.cache(false), addPods) |
37 | 38 | ||
38 | module.exports = router | 39 | module.exports = router |
39 | })() | 40 | })() |