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•11mo 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