Feat : add game deletion

This commit is contained in:
2024-08-27 12:05:17 +02:00
parent 0fb4877266
commit b5d89d4fe9
3 changed files with 35 additions and 1 deletions
+4
View File
@@ -52,6 +52,10 @@ export async function startGame(game: string) {
export async function deleteGame(game: string) {
const config = useRuntimeConfig();
const res = await $fetch<Game>(config.public.endpoint + `/games/${game}`, {
method: "DELETE",
credentials: "include",
});
}
export async function joinGame(game: string) {