change user api http method
deploy / build-and-deploy (push) Successful in 19s

This commit is contained in:
bytedream committed 2026-10-29 20:41:12 +01:00
1 parent 9536e99942
commit 1c5d533ffd
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -154,7 +154,7 @@
</details>
<details>
<summary><code>PUT</code> <code>/api/users</code> (Erstellt einen neuen Spieler)</summary>
<summary><code>POST</code> <code>/api/users</code> (Erstellt einen neuen Spieler)</summary>
##### Request Body
+1 -1
View File
@@ -2,7 +2,7 @@ import { z } from 'astro:schema';
import { db } from '@db/database.ts';
import { externalApi } from '../_api.ts';
export const PUT = externalApi({
export const POST = externalApi({
auth: true,
input: z.object({
firstname: z.string().trim().min(1),