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


                                                    
                                        
                                                    

                                            
                                            
 
                     


                                   
                       



                                  
 
 
                                                                              
 
                            
'use strict'

const adminMiddleware = require('./admin')
const oauthMiddleware = require('./oauth')
const paginationMiddleware = require('./pagination')
const podsMiddleware = require('./pods')
const validatorsMiddleware = require('./validators')
const searchMiddleware = require('./search')
const sortMiddleware = require('./sort')
const secureMiddleware = require('./secure')

const middlewares = {
  admin: adminMiddleware,
  oauth: oauthMiddleware,
  pagination: paginationMiddleware,
  pods: podsMiddleware,
  search: searchMiddleware,
  secure: secureMiddleware,
  sort: sortMiddleware,
  validators: validatorsMiddleware
}

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

module.exports = middlewares