T
TanStack7mo ago
equal-aqua

Most ergonomic way to validate and read query/search params in API routes

Is there something similar to validateSearch (available in regular routes) for API routes? Or what's the most ergonomic way to parse and read query params?
4 Replies
flat-fuchsia
flat-fuchsia7mo ago
does this work?
No description
rival-black
rival-black7mo ago
this is for parsing path params we don't have the same support for query params in api routes yet unfortunately
ambitious-aqua
ambitious-aqua2mo ago
any update?
rival-black
rival-black2mo ago
no

Did you find this page helpful?