fix: route auth register via gateway proxy

This commit is contained in:
Tracewebstudio Dev 2026-04-17 11:56:08 +02:00
parent bda6d495bc
commit 34f46f09bd
2 changed files with 3 additions and 3 deletions

View file

@ -262,7 +262,7 @@ export default function LoginRoute() {
setError(""); setError("");
setSubmitting(true); setSubmitting(true);
try { try {
const res = await fetch("/api/auth/resend-otp", { const res = await fetch("/api/gateway/api/auth/resend-otp", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json", Accept: "application/json" }, headers: { "Content-Type": "application/json", Accept: "application/json" },
credentials: "include", credentials: "include",

View file

@ -204,7 +204,7 @@ export default function SignupRoute() {
setSubmitting(true); setSubmitting(true);
try { try {
const res = await fetch("/api/auth/register", { const res = await fetch("/api/gateway/api/auth/register", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json", Accept: "application/json" }, headers: { "Content-Type": "application/json", Accept: "application/json" },
credentials: "include", credentials: "include",
@ -272,7 +272,7 @@ export default function SignupRoute() {
setServerError(""); setServerError("");
setSubmitting(true); setSubmitting(true);
try { try {
const res = await fetch("/api/auth/resend-otp", { const res = await fetch("/api/gateway/api/auth/resend-otp", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json", Accept: "application/json" }, headers: { "Content-Type": "application/json", Accept: "application/json" },
credentials: "include", credentials: "include",