diff --git a/src/routes/login.tsx b/src/routes/login.tsx index 3a604e1..e01e0af 100644 --- a/src/routes/login.tsx +++ b/src/routes/login.tsx @@ -262,7 +262,7 @@ export default function LoginRoute() { setError(""); setSubmitting(true); try { - const res = await fetch("/api/auth/resend-otp", { + const res = await fetch("/api/gateway/api/auth/resend-otp", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", diff --git a/src/routes/signup.tsx b/src/routes/signup.tsx index 6c653a8..21054d9 100644 --- a/src/routes/signup.tsx +++ b/src/routes/signup.tsx @@ -204,7 +204,7 @@ export default function SignupRoute() { setSubmitting(true); try { - const res = await fetch("/api/auth/register", { + const res = await fetch("/api/gateway/api/auth/register", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", @@ -272,7 +272,7 @@ export default function SignupRoute() { setServerError(""); setSubmitting(true); try { - const res = await fetch("/api/auth/resend-otp", { + const res = await fetch("/api/gateway/api/auth/resend-otp", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include",