smollweide / node-mock-server

File based Node REST API mock server
MIT License
255 stars 65 forks source link

Switching to middleware automatically #157

Open sahmed-amerisave opened 4 years ago

sahmed-amerisave commented 4 years ago

Is there a way to set the mode to middleware response by default when the application is started? I want to avoid manually switching every single time. I understand it gets registered, but when I rebuild the app, I need to choose middleware all over again. If there is a setting/flag somewhere in the config, that would be awesome.

krbaio3 commented 3 years ago

I need the same, because I have very validations, and the middleware is the only way to do it.