Replies: 2 comments
|
Can be done! Except for the "/api" part, everything else is case insenstive (deploying at cloudflare workers): index.ts build your custom router that takes the lowercased pathname |
0 replies
|
Use a pre-routing middleware, not a catch-all handler, so Hono's matcher + params still work. Rewrite only |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello all,
what's the proper way to make the routes case insensitive?
for example:
api/userandapi/USERwould point to the same endpoint?while keeping params etc case sensitive?
All reactions