Add userId check in users getAll and id endpoints
This commit is contained in:
1 parent
fc2978a61b
commit
325b19ba3f
10 files changed
+263
-96
No files matched your search
@@ -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(),
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user