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.
This commit is contained in:
2026-02-27 13:40:03 +01:00
parent 053901f2f4
commit e4e5fbf9f5

View File

@@ -52,7 +52,7 @@ export const actions: Actions = {
const email = form.get('email') as string;
try {
await apiFetch<MessageData>('/auth/magic-link/request', {
await apiFetch<MessageData>('/auth/magic-link', {
method: 'POST',
body: JSON.stringify({ email }),
fetch