mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-03 19:40:16 -04:00
Hotfix for Next.js route query paramater
This commit is contained in:
parent
7d705ac743
commit
354946e19e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user