maybe fix build errors
This commit is contained in:
parent
c9212a5ec8
commit
edc1ed5459
@ -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 (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user