express-automatic-routes
express-automatic-routes copied to clipboard
Use express RequestHandler type
Replaces the current Middleware
and Route
types with the built-in express one. This allows you to include a next
parameter in your handlers while still typing it using Resource
.
I also made some small changes to the error logging in the extract
method to make sure it is being typed correctly.
Sidenote
I was having issues running the tests because it couldn't find the module ./reports/base
. Adding --reporter classic
to the script seemed to fix it locally. Relevant: https://github.com/tapjs/node-tap/issues/624