mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +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);
|
||||
}
|
||||
|
||||
export async function POST(
|
||||
request: Request,
|
||||
{ params }: { params: Promise<{ teamId: string; userId: string }> },
|
||||
) {
|
||||
export async function POST(request: Request, { params }: { params: Promise<{ teamId: string }> }) {
|
||||
const schema = z.object({
|
||||
userId: z.string(),
|
||||
userId: z.string().uuid(),
|
||||
role: roleParam,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue