This commit is contained in:
headlesdev
2025-05-17 19:33:52 +02:00
parent 9b4d2e9735
commit ec8c5ffc03
5 changed files with 201 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ export async function POST(request: NextRequest) {
return NextResponse.json({ error: "User not found" }, { status: 404 });
}
return NextResponse.json({ message: "Valid" }, { status: 200 });
return NextResponse.json({ message: "Valid", username: user.username, name: user.name }, { status: 200 });
} catch (error: any) {
return NextResponse.json({ error: "Internal Server Error" }, { status: 500 });