fix(signup): change all auth API endpoints from /api/gateway to /api
Some checks failed
build-and-release / build (push) Failing after 1m17s
Some checks failed
build-and-release / build (push) Failing after 1m17s
This commit is contained in:
parent
07aa835da5
commit
1bf3191c49
4 changed files with 12 additions and 12 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue