inconsistent route response
Closed this issue · 2 comments
sonigeez commented
What version of Hono are you using?
4.3.1
What runtime/platform is your app running on?
node
What steps can reproduce the bug?
- Basic template
- add this code snippet
app.get('/api/v1/users', (c) => {
return c.json({ message: 'Hello World' });
});
What is the expected behavior?
return {"message":"Hello World"}
in both "/api/v1/users" and "/api/v1/users/" routes
What do you see instead?
404 on "/api/v1/users/" route
Additional information
No response
sor4chi commented
Try this option and see!
new Hono({
strict: false,
})
sonigeez commented
thanks