fix: route auth register via gateway proxy
This commit is contained in:
parent
bda6d495bc
commit
34f46f09bd
2 changed files with 3 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue