From 0f771b12d553eaf0b8fcd62e138d53a556bed92b Mon Sep 17 00:00:00 2001 From: legonzaur Date: Sun, 14 Jul 2024 16:57:24 +0200 Subject: [PATCH] Fix : game page not using correct endpoint --- pages/game/[id].vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pages/game/[id].vue b/pages/game/[id].vue index a33296f..17d3025 100644 --- a/pages/game/[id].vue +++ b/pages/game/[id].vue @@ -23,12 +23,9 @@ const { pending, error, refresh, -} = await useFetch( - new URL(`/games/${gameId}`, config.public.endpoint).href, - { - credentials: "include", - } -); +} = await useFetch(config.public.endpoint + `/games/${gameId}`, { + credentials: "include", +}); if (game.value == null) { navigateTo("/lobby");