Open yusukebe opened 2 years ago
Thanks! I just came across Hono today, and seeing its performance advantages over itty-router - I may switch over when I have time ;)
Cheers, and thanks for letting me know.
(I'll keep this open when I eventually refactor the project to use Hono or get multiple queries implemented.)
Hi there ✋
It's not sure that you know this way already, but I want to tell you. I know how to get multiple query params with
ittry-router
. Inside of the handler, we can getRequest
object. So, we can get multiple query params by getting url strings, passing intoURLSearchParams
, and usinggetAll()
method. This is code:Run with Wrangler or Miniflare, and then access like this:
You can get multi values.
Note:
You can also use Hono instead of ittry-router.
If it is annoying, feel free to close this issue.