mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 10:05:36 +01:00
clean-up post route for team user
This commit is contained in:
parent
e015ce8779
commit
14ee3990cd
1 changed files with 2 additions and 5 deletions
|
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue