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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user