From e4e5fbf9f59345ec6634a0a7ca2eeb803ab8023e Mon Sep 17 00:00:00 2001 From: vikingowl Date: Fri, 27 Feb 2026 13:40:03 +0100 Subject: [PATCH] fix: correct magic link API endpoint path Frontend was calling /auth/magic-link/request but the backend route is POST /auth/magic-link, causing a 404. --- web/src/routes/auth/anmelden/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/routes/auth/anmelden/+page.server.ts b/web/src/routes/auth/anmelden/+page.server.ts index cd42980..ad9b77f 100644 --- a/web/src/routes/auth/anmelden/+page.server.ts +++ b/web/src/routes/auth/anmelden/+page.server.ts @@ -52,7 +52,7 @@ export const actions: Actions = { const email = form.get('email') as string; try { - await apiFetch('/auth/magic-link/request', { + await apiFetch('/auth/magic-link', { method: 'POST', body: JSON.stringify({ email }), fetch