jcubic / wayne

Service Worker Routing library for in browser HTTP requests
https://jcubic.github.io/wayne
MIT License
556 stars 29 forks source link

Add middlewere #18

Closed jcubic closed 1 year ago

jcubic commented 1 year ago

add overloaded use API function similar to express.js:

app.use((req, res, next) => {

});

and

app.use((err, req, res, next) => {

});

This will help in #10

jcubic commented 1 year ago

app.use was added but only the error handler is working.