update user create endpoint
deploy / build-and-deploy (push) Successful in 17s

This commit is contained in:
bytedream committed 2026-10-29 20:34:39 +01:00
1 parent 0259aad7fd
commit 9536e99942
2 files changed
+2 -16

No files matched your search

+2 -7
View File
@@ -28,7 +28,7 @@ export const PUT = externalApi({
});
}
const user = await db.addUser({
await db.addUser({
firstname: input.firstname,
lastname: input.lastname,
birthday: input.birthday,
@@ -38,11 +38,6 @@ export const PUT = externalApi({
uuid: input.uuid
});
return new Response(JSON.stringify({ id: user.id }), {
status: 201,
headers: {
'Content-Type': 'application/json'
}
});
return new Response(null, { status: 201 });
}
});