macchiato-framework / macchiato-core

Ring style HTTP server abstraction for Node.js
MIT License
377 stars 35 forks source link

middleware registry #9

Open yogthos opened 7 years ago

yogthos commented 7 years ago

Have a central registry for middleware that would allow automatic resolution for the middleware chain. Have a mechanism for the middleware libraries to register themselves when the dependency is included. One approach for dong that.

theasp commented 6 years ago

I think just a simple list that we could make PRs for would do well in the short term. I'm actually looking for somewhere to link to this: https://github.com/theasp/macchiato-core-async

yogthos commented 6 years ago

That looks great, I think the official docs would be a good place https://github.com/macchiato-framework/macchiato-framework.github.io

could also add this as an example here https://github.com/macchiato-framework/examples