devbug/app/routing/Middleware.js

19 lines
593 B
JavaScript
Raw Normal View History

2019-06-21 22:01:34 +00:00
/*
* Global Middleware Definitions
* -------------------------------------------------------------
* These middleware are applied, in order, before every request that
* Flitter handles, regardless of request type. Each middleware class
* can be referenced using Flitter's global mw() function, but you can
* also require() the class directly.
*
* Route-specific middleware should be specified in the corresponding
* routes file.
*/
2019-06-24 16:45:22 +00:00
let Middleware = [
2019-06-21 22:01:34 +00:00
]
2019-06-24 16:45:22 +00:00
if ( _flitter.config('server.environment') === 'development' ) Middleware.push('Debug')
2019-06-24 14:35:49 +00:00
module.exports = exports = Middleware