donejs / done-serve

DoneJS development server
https://www.npmjs.com/package/done-serve
MIT License
7 stars 5 forks source link

Allow the server to be configured #148

Closed matthewp closed 5 years ago

matthewp commented 5 years ago

When we switched away from Express we lost the ability to configure the server by injecting middleware. This adds that back by adding a .configure property to options that is a function. Calling this functions gives you the layers array from which you can push middleware into.