cheatcode / joystick

A full-stack JavaScript framework for building stable, easy-to-maintain apps and websites.
https://cheatcode.co/joystick
Other
211 stars 11 forks source link

Add ability to disable built-in middleware #40

Open rglover opened 2 years ago

rglover commented 2 years ago

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.

rglover commented 2 months ago

This could be done via config.middleware.disabled where disabled is set to an array of strings matching built-in middleware function names.