Feat : add game deletion
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user