ADD: added function to update db scheme automaticly

This commit is contained in:
hwinkel
2025-11-18 22:23:08 +01:00
parent ef396af480
commit 3818fbf460
15 changed files with 876 additions and 186 deletions

View File

@@ -70,7 +70,7 @@ export async function fetchPlayers(token: string) {
return res.json();
}
export async function createPlayer(player: { name: string, email: string }, token: string) {
export async function createPlayer(player: { Username: string, Email: string }, token: string) {
const res = await fetch(`${API_URL}/players`, {
method: 'POST',
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}` },