Can app.notFound be customized for each Hono instance?
Hi. I'm experimenting a small application on Node.js 20. I notice that the
For example:
As expected,
However, when I try
Is this by design? Or I missed something?
Thanks in advance.
app.notFound() function is applied globally rather than per Hono instance.For example:
As expected,
curl http://127.0.0.1:28080/foo1/bar and curl http://127.0.0.1:28080/foo2/bar get me foo1, bar and foo2, bar respectively.However, when I try
curl http://127.0.0.1:28080/foo1/baz, I expect foo1, not found, but I get app, not found.Is this by design? Or I missed something?
Thanks in advance.