From 354946e19e338b8b1b4e84928e4b2a73e77abdd4 Mon Sep 17 00:00:00 2001 From: pmoharana-cmd Date: Tue, 5 Nov 2024 19:21:42 -0500 Subject: [PATCH] Hotfix for Next.js route query paramater --- compass/app/api/resource/all/route.ts | 2 +- compass/app/api/service/all/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compass/app/api/resource/all/route.ts b/compass/app/api/resource/all/route.ts index 3649278..9daa022 100644 --- a/compass/app/api/resource/all/route.ts +++ b/compass/app/api/resource/all/route.ts @@ -9,7 +9,7 @@ export async function GET(request: Request) { const { searchParams } = new URL(request.url); const uuid = searchParams.get("uuid"); - const data = await fetch(`${apiEndpoint}?user_id=${uuid}`); + const data = await fetch(`${apiEndpoint}?uuid=${uuid}`); const resourceData: Resource[] = await data.json(); // TODO: Remove make every resource visible diff --git a/compass/app/api/service/all/route.ts b/compass/app/api/service/all/route.ts index b164bc1..e7786ea 100644 --- a/compass/app/api/service/all/route.ts +++ b/compass/app/api/service/all/route.ts @@ -9,7 +9,7 @@ export async function GET(request: Request) { const { searchParams } = new URL(request.url); const uuid = searchParams.get("uuid"); - const data = await fetch(`${apiEndpoint}?user_id=${uuid}`); + const data = await fetch(`${apiEndpoint}?uuid=${uuid}`); const serviceData: Service[] = await data.json(); // TODO: Remove make every service visible