diff --git a/src/routes/signup/company.tsx b/src/routes/signup/company.tsx index a0bfa48..e8ac9b9 100644 --- a/src/routes/signup/company.tsx +++ b/src/routes/signup/company.tsx @@ -73,7 +73,7 @@ export default function CompanySignupRoute() { } try { - const response = await fetch("/api/gateway/auth/check-email", { + const response = await fetch("/api/auth/check-email", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", @@ -203,7 +203,7 @@ export default function CompanySignupRoute() { } setSubmitting(true); try { - const verifyRes = await fetch("/api/gateway/auth/verify-email", { + const verifyRes = await fetch("/api/auth/verify-email", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", @@ -227,7 +227,7 @@ export default function CompanySignupRoute() { setServerError(""); setSubmitting(true); try { - const res = await fetch("/api/gateway/auth/resend-otp", { + const res = await fetch("/api/auth/resend-otp", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", diff --git a/src/routes/signup/customer.tsx b/src/routes/signup/customer.tsx index 88008c1..608a060 100644 --- a/src/routes/signup/customer.tsx +++ b/src/routes/signup/customer.tsx @@ -72,7 +72,7 @@ export default function CustomerSignupRoute() { } try { - const response = await fetch("/api/gateway/auth/check-email", { + const response = await fetch("/api/auth/check-email", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", @@ -200,7 +200,7 @@ export default function CustomerSignupRoute() { } setSubmitting(true); try { - const verifyRes = await fetch("/api/gateway/auth/verify-email", { + const verifyRes = await fetch("/api/auth/verify-email", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", @@ -224,7 +224,7 @@ export default function CustomerSignupRoute() { setServerError(""); setSubmitting(true); try { - const res = await fetch("/api/gateway/auth/resend-otp", { + const res = await fetch("/api/auth/resend-otp", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", diff --git a/src/routes/signup/jobseeker.tsx b/src/routes/signup/jobseeker.tsx index dee5b76..cc66643 100644 --- a/src/routes/signup/jobseeker.tsx +++ b/src/routes/signup/jobseeker.tsx @@ -73,7 +73,7 @@ export default function JobSeekerSignupRoute() { } try { - const response = await fetch("/api/gateway/auth/check-email", { + const response = await fetch("/api/auth/check-email", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", @@ -190,7 +190,7 @@ export default function JobSeekerSignupRoute() { } setSubmitting(true); try { - const verifyRes = await fetch("/api/gateway/auth/verify-email", { + const verifyRes = await fetch("/api/auth/verify-email", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", @@ -214,7 +214,7 @@ export default function JobSeekerSignupRoute() { setServerError(""); setSubmitting(true); try { - const res = await fetch("/api/gateway/auth/resend-otp", { + const res = await fetch("/api/auth/resend-otp", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", diff --git a/src/routes/signup/professional.tsx b/src/routes/signup/professional.tsx index 505002f..3b1533e 100644 --- a/src/routes/signup/professional.tsx +++ b/src/routes/signup/professional.tsx @@ -88,7 +88,7 @@ export default function ProfessionalSignupRoute() { } try { - const response = await fetch("/api/gateway/auth/check-email", { + const response = await fetch("/api/auth/check-email", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", @@ -210,7 +210,7 @@ export default function ProfessionalSignupRoute() { } setSubmitting(true); try { - const verifyRes = await fetch("/api/gateway/auth/verify-email", { + const verifyRes = await fetch("/api/auth/verify-email", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include", @@ -234,7 +234,7 @@ export default function ProfessionalSignupRoute() { setServerError(""); setSubmitting(true); try { - const res = await fetch("/api/gateway/auth/resend-otp", { + const res = await fetch("/api/auth/resend-otp", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, credentials: "include",