]>
Commit | Line | Data |
---|---|---|
9f10b292 | 1 | 'use strict' |
8c308c2b | 2 | |
9bd26629 C |
3 | const adminMiddleware = require('./admin') |
4 | const oauthMiddleware = require('./oauth') | |
5 | const paginationMiddleware = require('./pagination') | |
1ab844d8 | 6 | const podsMiddleware = require('./pods') |
fc51fde0 | 7 | const validatorsMiddleware = require('./validators') |
9bd26629 C |
8 | const searchMiddleware = require('./search') |
9 | const sortMiddleware = require('./sort') | |
f0f5567b | 10 | const secureMiddleware = require('./secure') |
a030a9b2 | 11 | |
f0f5567b | 12 | const 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 | 25 | module.exports = middlewares |