add more api response results
All checks were successful
deploy / build-and-deploy (push) Successful in 18s
All checks were successful
deploy / build-and-deploy (push) Successful in 18s
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user