dburl geaendert

This commit is contained in:
Ali
2026-02-20 19:24:51 +09:00
parent 223538f5ff
commit 7b0d41e2f4
2 changed files with 7 additions and 3 deletions

View File

@@ -48,6 +48,7 @@
const username = document.getElementById('emailInput').value;
const password = document.getElementById('passwordInput').value;
const errorDisplay = document.getElementById('error');
const data = await response.json().catch(() => ({ message: "Server antwortet nicht lesbar" }));
// Entscheide, an welche Tür (URL) wir klopfen
const endpoint = isRegisterMode ? '/auth/register' : '/auth/login';