Fix : change route param to query arg in create game function

This commit is contained in:
2024-07-31 10:31:51 +02:00
parent 0669619543
commit 302890a4ac
+1 -2
View File
@@ -53,8 +53,7 @@ export async function createGame() {
method: "POST", method: "POST",
credentials: "include", credentials: "include",
}); });
console.log(res); navigateTo(`/game?id=${res._id}`);
navigateTo("/game/" + res._id);
} }
export async function startGame(game: string) { export async function startGame(game: string) {