joystick
joystick copied to clipboard
Add ability to disable built-in middleware
Came across a use case for this on another project. Need to be able to disable the built-in middleware in favor of configuring a custom version in the middleware option passed to node.app(). This will allow handling domain-specific setups without having to kludge together something using the config in settings.
This could be done via config.middleware.disabled where disabled is set to an array of strings matching built-in middleware function names.