router.js
router.js copied to clipboard
Option to disable auto.error handlers
Add an option to the router to disable default handlers for 404 and 500 errors.
The workaround I use to prevent those annoying console messages (Path "/whatever..." not matched), is to add a catch all-handler (registered after all other handlers). Maybe this will work for you too?
router.get(/\/(.*)/i, (req, context) => {
// console.debug('catch all!');
});
Update: lol, I didn't realize you are the repo owner :)
Eheh, I wrote the issue more as a reminder for myself. I wonder if anybody is still using this library though. Any good use case?