diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-01 16:16:40 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-01 16:16:40 +0200 |
commit | fc51fde048f2c3ce1dd3e85f5528335040bae894 (patch) | |
tree | 6de1eeac1291d9398cc99cda926b189c39b3ea0b /server/controllers/api/v1/pods.js | |
parent | 69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd (diff) | |
download | PeerTube-fc51fde048f2c3ce1dd3e85f5528335040bae894.tar.gz PeerTube-fc51fde048f2c3ce1dd3e85f5528335040bae894.tar.zst PeerTube-fc51fde048f2c3ce1dd3e85f5528335040bae894.zip |
reqValidators --> validators
Diffstat (limited to 'server/controllers/api/v1/pods.js')
-rw-r--r-- | server/controllers/api/v1/pods.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js index 9ce8120b2..4413fbc1e 100644 --- a/server/controllers/api/v1/pods.js +++ b/server/controllers/api/v1/pods.js | |||
@@ -8,16 +8,16 @@ const logger = require('../../../helpers/logger') | |||
8 | const friends = require('../../../lib/friends') | 8 | const friends = require('../../../lib/friends') |
9 | const middlewares = require('../../../middlewares') | 9 | const middlewares = require('../../../middlewares') |
10 | const oAuth = middlewares.oauth | 10 | const oAuth = middlewares.oauth |
11 | const reqValidator = middlewares.reqValidators.pods | 11 | const validators = middlewares.validators.pods |
12 | const signatureValidator = middlewares.reqValidators.remote.signature | 12 | const signatureValidator = middlewares.validators.remote.signature |
13 | 13 | ||
14 | const router = express.Router() | 14 | const router = express.Router() |
15 | const Pod = mongoose.model('Pod') | 15 | const Pod = mongoose.model('Pod') |
16 | const Video = mongoose.model('Video') | 16 | const Video = mongoose.model('Video') |
17 | 17 | ||
18 | router.get('/', listPodsUrl) | 18 | router.get('/', listPodsUrl) |
19 | router.post('/', reqValidator.podsAdd, addPods) | 19 | router.post('/', validators.podsAdd, addPods) |
20 | router.get('/makefriends', oAuth.authenticate, reqValidator.makeFriends, makeFriends) | 20 | router.get('/makefriends', oAuth.authenticate, validators.makeFriends, makeFriends) |
21 | router.get('/quitfriends', oAuth.authenticate, quitFriends) | 21 | router.get('/quitfriends', oAuth.authenticate, quitFriends) |
22 | // Post because this is a secured request | 22 | // Post because this is a secured request |
23 | router.post('/remove', signatureValidator, removePods) | 23 | router.post('/remove', signatureValidator, removePods) |