T
TanStack11mo ago
stormy-gold

Search params in api routes

Is there a way to validate search (query params) in api routes like it is in regular routes with validateSearch?
1 Reply
ratty-blush
ratty-blush11mo ago
You could use the same utilities from router to parse and then a validator library like Zod But nothing integrated like it is for ui routes

Did you find this page helpful?