#query params

3 messages · Page 1 of 1 (latest)

steady adder
#

How can i access query params in api routes? Only path params are documented

neat arch
#

I think that TSS does not have something specific for search params, but you could use the request object

 const url = new URL(request.url);
 const searchParams = url.searchParams;

and validate with zod or valibot if you want

umbral lichen
#

exactly