Settings Site

This commit is contained in:
headlesdev
2025-05-17 21:08:08 +02:00
parent 204cbc65c0
commit 654ea94bd0
3 changed files with 69 additions and 5 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", username: user.username, name: user.name }, { status: 200 });
return NextResponse.json({ message: "Valid", username: user.username, name: user.name, email: user.email }, { status: 200 });
} catch (error: any) {
return NextResponse.json({ error: "Internal Server Error" }, { status: 500 });