aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/index.js
blob: 0a233e70106f52cb89b521102973816b1dddd190 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'use strict'

const oauth = require('./oauth')
const pagination = require('./pagination')
const validatorsMiddleware = require('./validators')
const search = require('./search')
const sort = require('./sort')
const secureMiddleware = require('./secure')

const middlewares = {
  oauth: oauth,
  pagination: pagination,
  validators: validatorsMiddleware,
  search: search,
  sort: sort,
  secure: secureMiddleware
}

// ---------------------------------------------------------------------------

module.exports = middlewares