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

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

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

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

module.exports = middlewares