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",
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user