Add userId check in users getAll and id endpoints

This commit is contained in:
Agusti Fernandez Pardo committed 2022-04-07 21:55:43 +02:00
1 parent fc2978a61b
commit 325b19ba3f
10 files changed
+263 -96

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ export const baseApiParams = z
.object({
// since we added apiKey as query param this is required by next-validations helper
// for query params to work properly and not fail.
apiKey: z.string().cuid().optional(),
apiKey: z.string().optional(),
// version required for supporting /v1/ redirect to query in api as *?version=1
version: z.string().optional(),
})