Wrong api response after path definition
Closed this issue · 1 comments
MarioCares commented
What version of Hono are you using?
4.2.9
What runtime/platform is your app running on?
Cloudflare Workers
What steps can reproduce the bug?
app.get('/', async (c) => {
return c.text("route / GET");
});
app.get('/:path', async (c) => {
return c.text("route / with path GET");
});
app.post('/', async (c) => {
return c.text("route / POST");
});
What is the expected behavior?
When POST to / it should respond: route / POST
What do you see instead?
route / GET
Additional information
No response
MarioCares commented
It was a cloudflare problem.
Everything (POST, PUT, DELETE) was redirected to GET request.