clean-up post route for team user
This commit is contained in:
@@ -45,12 +45,9 @@ export async function GET(request: Request, { params }: { params: Promise<{ team
|
|||||||
return json(users);
|
return json(users);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function POST(
|
export async function POST(request: Request, { params }: { params: Promise<{ teamId: string }> }) {
|
||||||
request: Request,
|
|
||||||
{ params }: { params: Promise<{ teamId: string; userId: string }> },
|
|
||||||
) {
|
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
userId: z.string(),
|
userId: z.string().uuid(),
|
||||||
role: roleParam,
|
role: roleParam,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user