Skip to content

Commit

Permalink
implement organization-team-join api on frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesNg35 committed Jan 15, 2024
1 parent 3071656 commit ad9e605
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 296 deletions.
6 changes: 5 additions & 1 deletion apps/web/app/api/organization-team-join/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ export async function GET(req: Request) {
tenantId,
organizationId
});

return NextResponse.json(requestToJoinData.data);
}

export async function POST(req: Request) {
const body = (await req.json()) as IRequestToJoinCreate;
return NextResponse.json(await requestToJoinRequest(body));

const response = await requestToJoinRequest(body);

return NextResponse.json(response.data);
}
Loading

0 comments on commit ad9e605

Please sign in to comment.