Replies: 1 comment
-
Hi @Kanahiro I know that you want to, but you can't do this: hono.get('/:z/:x/:y.:ext', async (c) => { This is a limitation of the routers if they can't capture multiple values from the path. |
Beta Was this translation helpful? Give feedback.
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I use Hono in my project https://github.com/Kanahiro/chiitiler.
This server exposes some endpoints like
/filename.png
.An extension is not fixed and can be png | webp | jpeg.
https://github.com/Kanahiro/chiitiler/blob/ff3d0e1e790789dce6014ff6bdc64fa71fc55add/src/server/index.ts#L54
I feel my codes to parse filename and extension look awkward.
question
I think it may be nice I can write codes like following
Is there any way to solve this in better way?
Thank you for reading.
Beta Was this translation helpful? Give feedback.
All reactions