Open sstur opened 7 months ago
@sstur Any chance you could publish this?
Will do. I need to take one more pass at this to evaluate if the API is right and I need to see why the tests are failing. Will get on that as soon as possible.
Will do. I need to take one more pass at this to evaluate if the API is right and I need to see why the tests are failing. Will get on that as soon as possible.
I love you bro, you're the goat
This implements a way to add a listener for incoming requests (or only requests that match a route) and modify the response object, e.g. add CORS headers.
Alternatively you can do this only if a route matches.
If it's useful, we could expose a helper like so:
TODO: