maybe fix build errors

This commit is contained in:
liquidwater0 2025-04-03 01:34:25 -05:00 committed by Quaternions
parent c9212a5ec8
commit edc1ed5459
2 changed files with 11 additions and 7 deletions
web/src/app/maps

@ -2,16 +2,16 @@ import Webpage from "@/app/_components/webpage";
interface MapParams { interface MapParams {
params: { params: {
mapid: string; mapId: string;
}; };
} }
export default function Map({ params }: MapParams) { export default function Map({ params }: MapParams) {
const { mapid } = params; const { mapId } = params;
return ( return (
<Webpage> <Webpage>
<p>map { mapid }</p> <p>map { mapId }</p>
</Webpage> </Webpage>
); );
} }

@ -1,12 +1,16 @@
import Webpage from "@/app/_components/webpage"; import Webpage from "@/app/_components/webpage";
export default async function MapsPage() { export default async function MapsPage() {
const ingameMaps = fetch("/api/maps?Page=1&Limit=10");
try { try {
console.log(ingameMaps); const response = await fetch("/api/maps?Page=1&Limit=10");
const json = await response.json();
console.log(json);
} catch(error) { } catch(error) {
console.log(error); return (
<Webpage>
<h1>No Maps!</h1>
</Webpage>
)
} }
return ( return (