1
0
Fork 0
This repository has been archived on 2023-12-03. You can view files and clone it, but cannot push or open issues or pull requests.
chellaris-galaxy-political-.../app/page.tsx

15 lines
386 B
TypeScript

import '@/app/globals.css';
import { Game, GameGroup } from '@/types/stellaris';
import { GameView } from '@/components/gui/game-view';
import { generateUrl } from '@/components/server/fetchers';
export default async function Home() {
const games = await fetch(generateUrl('/games')).then((res) => res.json())
return (
<main>
<GameView games={games}/>
</main>
)
}