add more api response results
All checks were successful
deploy / build-and-deploy (push) Successful in 18s

This commit is contained in:
2025-10-15 14:55:29 +02:00
parent 37ca206bed
commit 951a2f14c4
2 changed files with 12 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ export const POST: APIRoute = async ({ request }) => {
return new Response(
JSON.stringify({
firstname: user.firstname,
lastname: user.lastname,
username: user.username,
uuid: user.uuid,
strikes: strikes.map((s) => ({ at: s.at.getTime(), weight: s.reason.weight }))
}),
{ status: 200 }