Hotfix for Next.js route query paramater

This commit is contained in:
pmoharana-cmd 2024-11-05 19:21:42 -05:00
parent 7d705ac743
commit 354946e19e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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