withParams will be useable as upstream middleware:
const router = new Router()
router
.all('*', withParams) // can put it here now and still get params later
.get('/:id', ({ id }) => text(`You asked for id: ${id}`))
adds watch(predicate:string|function, callback:function) to watch and respond to changes on the request
adds support for custom errors through error(status:number, content:string|object)
adds support for exposing stack trace in errors via ThrowableRouter({ stack: true })
Changelog
withParams
will be useable as upstream middleware:watch(predicate:string|function, callback:function)
to watch and respond to changes on the requesterror(status:number, content:string|object)
ThrowableRouter({ stack: true })