middleware.js 494 B

123456789101112
  1. const middleware = {}
  2. middleware['auth'] = require('../middleware/auth.js')
  3. middleware['auth'] = middleware['auth'].default || middleware['auth']
  4. middleware['checkTimestamp'] = require('../middleware/checkTimestamp.js')
  5. middleware['checkTimestamp'] = middleware['checkTimestamp'].default || middleware['checkTimestamp']
  6. middleware['redirect'] = require('../middleware/redirect.js')
  7. middleware['redirect'] = middleware['redirect'].default || middleware['redirect']
  8. export default middleware