feat: Update joinGame endpoint to accept gameId as a path parameter

This commit is contained in:
2026-01-07 16:56:34 +01:00
parent 352b7fd3ff
commit 92a7bc0586

View File

@@ -14,8 +14,7 @@ const startGameQuasar = async() => {
return; return;
} }
isLoading.value = true; isLoading.value = true;
axios.post(`${api}/joinGame`, {gameId: lobbyCode.value.toString()}, {withCredentials: true}).then(response => { axios.post(`${api}/joinGame/${lobbyCode.value.toString()}`, {}, {withCredentials: true}).then(() => {
const responseData = response.data
$q.notify({ $q.notify({
message: `Lobby "${lobbyCode.value}" erfolgreich gefunden`, message: `Lobby "${lobbyCode.value}" erfolgreich gefunden`,
color: 'green-6', color: 'green-6',