aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/middlewares/index.js
blob: b30a7be56f24129bad984a7134cbd79705525f68 (plain) (tree)
1
2
3
4
5
6
7
8
9
            
 
                                  
                                          
                                                          
                                  
                              
                                            
 
                     
                 
                         
                                         
                 
             
                          
 
 
                                                                              
 
                            
'use strict'

const oauth2 = require('./oauth2')
const pagination = require('./pagination')
const reqValidatorsMiddleware = require('./reqValidators')
const search = require('./search')
const sort = require('./sort')
const secureMiddleware = require('./secure')

const middlewares = {
  oauth2: oauth2,
  pagination: pagination,
  reqValidators: reqValidatorsMiddleware,
  search: search,
  sort: sort,
  secure: secureMiddleware
}

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

module.exports = middlewares