diff options
Diffstat (limited to 'routes/api/v1/pods.js')
-rw-r--r-- | routes/api/v1/pods.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/api/v1/pods.js b/routes/api/v1/pods.js index 961388fcb..8ae676834 100644 --- a/routes/api/v1/pods.js +++ b/routes/api/v1/pods.js | |||
@@ -4,6 +4,7 @@ | |||
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 pods = require('../../../src/pods') | 8 | var pods = require('../../../src/pods') |
8 | 9 | ||
9 | function listPods (req, res, next) { | 10 | function listPods (req, res, next) { |
@@ -32,7 +33,7 @@ | |||
32 | 33 | ||
33 | router.get('/', middleware.cache(false), listPods) | 34 | router.get('/', middleware.cache(false), listPods) |
34 | router.get('/makefriends', middleware.cache(false), makeFriends) | 35 | router.get('/makefriends', middleware.cache(false), makeFriends) |
35 | router.post('/', middleware.cache(false), addPods) | 36 | router.post('/', reqValidator.podsAdd, middleware.cache(false), addPods) |
36 | 37 | ||
37 | module.exports = router | 38 | module.exports = router |
38 | })() | 39 | })() |