diff --git a/src/components/dashboard/CompanyApplicationsPage.tsx b/src/components/dashboard/CompanyApplicationsPage.tsx index 30d6c87..fdfe121 100644 --- a/src/components/dashboard/CompanyApplicationsPage.tsx +++ b/src/components/dashboard/CompanyApplicationsPage.tsx @@ -9,7 +9,7 @@ import { For, Show, createSignal, onMount } from "solid-js"; import { BTN_GHOST, BTN_ORANGE, CARD, INPUT, LABEL } from "~/components/DashboardShell"; -const API = "/api/gateway"; +const API = "/api"; interface JobItem { id: string; diff --git a/src/components/dashboard/CompanyJobsPage.tsx b/src/components/dashboard/CompanyJobsPage.tsx index b3c7761..837340b 100644 --- a/src/components/dashboard/CompanyJobsPage.tsx +++ b/src/components/dashboard/CompanyJobsPage.tsx @@ -19,7 +19,7 @@ import { LABEL, } from "~/components/DashboardShell"; -const API = "/api/gateway"; +const API = "/api"; interface JobItem { id: string; diff --git a/src/components/dashboard/CreditsPage.tsx b/src/components/dashboard/CreditsPage.tsx index b9004d3..d6ddfd0 100644 --- a/src/components/dashboard/CreditsPage.tsx +++ b/src/components/dashboard/CreditsPage.tsx @@ -4,7 +4,7 @@ import { BTN_GHOST, BTN_ORANGE, BTN_PRIMARY, CARD, ORANGE, NAVY, PKG_CARD } from import { PROFESSIONAL_ROLE_SET, ROLE_PREFIXES, type RoleKey } from "./RoleDashboardShared"; import { openPayuCheckout } from "~/lib/payu"; -const API = "/api/gateway"; +const API = "/api"; type Props = { roleKey: RoleKey; dashboardConfig?: Record | null }; diff --git a/src/components/dashboard/CustomerRequirementsPage.tsx b/src/components/dashboard/CustomerRequirementsPage.tsx index f30311e..d82d974 100644 --- a/src/components/dashboard/CustomerRequirementsPage.tsx +++ b/src/components/dashboard/CustomerRequirementsPage.tsx @@ -9,7 +9,7 @@ import { For, Show, createMemo, createSignal, onMount } from "solid-js"; import { BTN_GHOST, BTN_PRIMARY, CARD, INPUT, LABEL } from "~/components/DashboardShell"; -const API = "/api/gateway"; +const API = "/api"; type RequirementItem = { id: string; diff --git a/src/components/dashboard/ExploreServicesPage.tsx b/src/components/dashboard/ExploreServicesPage.tsx index 9f84b4f..b2f75cb 100644 --- a/src/components/dashboard/ExploreServicesPage.tsx +++ b/src/components/dashboard/ExploreServicesPage.tsx @@ -5,7 +5,7 @@ import { Camera, Scissors, GraduationCap, Code2, Clapperboard, PenTool, Megaphon const NAVY = "#0D0D2A"; const ORANGE = "#FF5E13"; -const API = "/api/gateway"; +const API = "/api"; const MAIN_ROLES = [ { key: "COMPANY", name: "Company", Icon: Users, subtitle: "Hire talent, post jobs, and manage applications in one path." }, diff --git a/src/components/dashboard/HelpCenterDashboardPage.tsx b/src/components/dashboard/HelpCenterDashboardPage.tsx index 25260b1..a343cbf 100644 --- a/src/components/dashboard/HelpCenterDashboardPage.tsx +++ b/src/components/dashboard/HelpCenterDashboardPage.tsx @@ -3,7 +3,7 @@ import { HelpCircle } from "lucide-solid"; import { BTN_GHOST, CARD, INPUT } from "~/components/DashboardShell"; import { type RoleKey } from "./RoleDashboardShared"; -const API = "/api/gateway"; +const API = "/api"; const NAVY = "#0D0D2A"; const ORANGE = "#FF5E13"; diff --git a/src/components/dashboard/JobSeekerJobsPage.tsx b/src/components/dashboard/JobSeekerJobsPage.tsx index a60d633..ad1be44 100644 --- a/src/components/dashboard/JobSeekerJobsPage.tsx +++ b/src/components/dashboard/JobSeekerJobsPage.tsx @@ -11,7 +11,7 @@ import { Sparkles, Loader } from "lucide-solid"; import { BTN_GHOST, BTN_PRIMARY, CARD, INPUT } from "~/components/DashboardShell"; import { readJobSeekerProfile, updateJobSeekerCustomData } from "~/lib/job-seeker-custom-data"; -const API = "/api/gateway"; +const API = "/api"; type JobItem = { id: string; diff --git a/src/components/dashboard/MyDashboardPage.tsx b/src/components/dashboard/MyDashboardPage.tsx index 4aeb40c..290bc34 100644 --- a/src/components/dashboard/MyDashboardPage.tsx +++ b/src/components/dashboard/MyDashboardPage.tsx @@ -269,14 +269,14 @@ export default function MyDashboardPage(props: Props) { try { if (roleKey === 'COMPANY') { const [jobsRes, appsRes] = await Promise.all([ - fetch('/api/gateway/companies/jobs?page=1&limit=100', { + fetch('/api/companies/jobs?page=1&limit=100', { credentials: 'include', headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${window.sessionStorage.getItem('nxtgauge_access_token') || ''}`, }, }), - fetch('/api/gateway/companies/jobs?page=1&limit=1', { + fetch('/api/companies/jobs?page=1&limit=1', { credentials: 'include', headers: { 'Content-Type': 'application/json', @@ -295,7 +295,7 @@ export default function MyDashboardPage(props: Props) { ); if (!jobsRes.ok && !appsRes.ok) setErr('Some company metrics could not be loaded.'); } else if (roleKey === 'CUSTOMER') { - const res = await fetch('/api/gateway/customers/requirements?page=1&limit=100', { + const res = await fetch('/api/customers/requirements?page=1&limit=100', { credentials: 'include', headers: { 'Content-Type': 'application/json', @@ -313,14 +313,14 @@ export default function MyDashboardPage(props: Props) { if (!res.ok) setErr('Some customer metrics could not be loaded.'); } else if (roleKey === 'JOB_SEEKER') { const [jobsRes, appsRes] = await Promise.all([ - fetch('/api/gateway/jobseeker/jobs?page=1&limit=100', { + fetch('/api/jobseeker/jobs?page=1&limit=100', { credentials: 'include', headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${window.sessionStorage.getItem('nxtgauge_access_token') || ''}`, }, }), - fetch('/api/gateway/jobseeker/applications?page=1&limit=100', { + fetch('/api/jobseeker/applications?page=1&limit=100', { credentials: 'include', headers: { 'Content-Type': 'application/json', diff --git a/src/components/dashboard/ProfessionalLeadsPage.tsx b/src/components/dashboard/ProfessionalLeadsPage.tsx index 4d3c140..59a2bfe 100644 --- a/src/components/dashboard/ProfessionalLeadsPage.tsx +++ b/src/components/dashboard/ProfessionalLeadsPage.tsx @@ -9,7 +9,7 @@ import { For, Show, createMemo, createSignal, onMount } from "solid-js"; import { BTN_GHOST, BTN_PRIMARY, CARD, INPUT } from "~/components/DashboardShell"; import { ROLE_PREFIXES, type RoleKey } from "./RoleDashboardShared"; -const API = "/api/gateway"; +const API = "/api"; type Props = { roleKey: RoleKey };