PeerTube/server/middlewares/reqValidators/index.js

20 lines
547 B
JavaScript
Raw Normal View History

'use strict'
2015-11-07 07:16:26 -06:00
const paginationReqValidators = require('./pagination')
2016-03-16 16:29:27 -05:00
const podsReqValidators = require('./pods')
const remoteReqValidators = require('./remote')
2016-05-17 14:03:00 -05:00
const sortReqValidators = require('./sort')
2016-03-16 16:29:27 -05:00
const videosReqValidators = require('./videos')
2016-02-07 04:47:30 -06:00
2016-03-16 16:29:27 -05:00
const reqValidators = {
pagination: paginationReqValidators,
2016-02-07 04:47:30 -06:00
pods: podsReqValidators,
remote: remoteReqValidators,
2016-05-17 14:03:00 -05:00
sort: sortReqValidators,
2016-02-07 04:47:30 -06:00
videos: videosReqValidators
}
2015-11-07 07:16:26 -06:00
// ---------------------------------------------------------------------------
2016-01-31 04:23:52 -06:00
module.exports = reqValidators