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("");
|
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",
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue