diff --git a/netcode/index.ts b/netcode/index.ts index 7b29da8..7824389 100644 --- a/netcode/index.ts +++ b/netcode/index.ts @@ -53,8 +53,7 @@ export async function createGame() { method: "POST", credentials: "include", }); - console.log(res); - navigateTo("/game/" + res._id); + navigateTo(`/game?id=${res._id}`); } export async function startGame(game: string) {