This commit is contained in:
1 parent
0259aad7fd
commit
9536e99942
2 files changed
+2
-16
No files matched your search
@@ -186,15 +186,6 @@
|
|||||||
| 401 | Es wurde ein falsches API Secret angegeben |
|
| 401 | Es wurde ein falsches API Secret angegeben |
|
||||||
| 409 | Username oder UUID existiert bereits |
|
| 409 | Username oder UUID existiert bereits |
|
||||||
|
|
||||||
##### Response Body
|
|
||||||
|
|
||||||
```
|
|
||||||
{
|
|
||||||
// ID des neuen Users
|
|
||||||
"id": number
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export const PUT = externalApi({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const user = await db.addUser({
|
await db.addUser({
|
||||||
firstname: input.firstname,
|
firstname: input.firstname,
|
||||||
lastname: input.lastname,
|
lastname: input.lastname,
|
||||||
birthday: input.birthday,
|
birthday: input.birthday,
|
||||||
@@ -38,11 +38,6 @@ export const PUT = externalApi({
|
|||||||
uuid: input.uuid
|
uuid: input.uuid
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Response(JSON.stringify({ id: user.id }), {
|
return new Response(null, { status: 201 });
|
||||||
status: 201,
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user