]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/middlewares/index.js
Merge branch 'master' into webseed-merged
[github/Chocobozzz/PeerTube.git] / server / middlewares / index.js
CommitLineData
9f10b292 1'use strict'
8c308c2b 2
9bd26629
C
3const adminMiddleware = require('./admin')
4const oauthMiddleware = require('./oauth')
5const paginationMiddleware = require('./pagination')
1ab844d8 6const podsMiddleware = require('./pods')
fc51fde0 7const validatorsMiddleware = require('./validators')
9bd26629
C
8const searchMiddleware = require('./search')
9const sortMiddleware = require('./sort')
f0f5567b 10const secureMiddleware = require('./secure')
a030a9b2 11
f0f5567b 12const middlewares = {
9bd26629
C
13 admin: adminMiddleware,
14 oauth: oauthMiddleware,
15 pagination: paginationMiddleware,
1ab844d8 16 pods: podsMiddleware,
9bd26629
C
17 search: searchMiddleware,
18 secure: secureMiddleware,
19 sort: sortMiddleware,
20 validators: validatorsMiddleware
9f10b292 21}
8c308c2b 22
9f10b292 23// ---------------------------------------------------------------------------
c45f7f84 24
9f10b292 25module.exports = middlewares