diff options
Diffstat (limited to 'server/middlewares/index.js')
-rw-r--r-- | server/middlewares/index.js | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/server/middlewares/index.js b/server/middlewares/index.js index 0a233e701..3f253e31b 100644 --- a/server/middlewares/index.js +++ b/server/middlewares/index.js | |||
@@ -1,19 +1,23 @@ | |||
1 | 'use strict' | 1 | 'use strict' |
2 | 2 | ||
3 | const oauth = require('./oauth') | 3 | const adminMiddleware = require('./admin') |
4 | const pagination = require('./pagination') | 4 | const oauthMiddleware = require('./oauth') |
5 | const paginationMiddleware = require('./pagination') | ||
6 | const podsMiddleware = require('./pods') | ||
5 | const validatorsMiddleware = require('./validators') | 7 | const validatorsMiddleware = require('./validators') |
6 | const search = require('./search') | 8 | const searchMiddleware = require('./search') |
7 | const sort = require('./sort') | 9 | const sortMiddleware = require('./sort') |
8 | const secureMiddleware = require('./secure') | 10 | const secureMiddleware = require('./secure') |
9 | 11 | ||
10 | const middlewares = { | 12 | const middlewares = { |
11 | oauth: oauth, | 13 | admin: adminMiddleware, |
12 | pagination: pagination, | 14 | oauth: oauthMiddleware, |
13 | validators: validatorsMiddleware, | 15 | pagination: paginationMiddleware, |
14 | search: search, | 16 | pods: podsMiddleware, |
15 | sort: sort, | 17 | search: searchMiddleware, |
16 | secure: secureMiddleware | 18 | secure: secureMiddleware, |
19 | sort: sortMiddleware, | ||
20 | validators: validatorsMiddleware | ||
17 | } | 21 | } |
18 | 22 | ||
19 | // --------------------------------------------------------------------------- | 23 | // --------------------------------------------------------------------------- |