Fix : change route param to query arg in create game function
This commit is contained in:
+1
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user