Feat : add buy gem action
This commit is contained in:
@@ -113,6 +113,17 @@ export async function buyCard(game: string, cardId: string) {
|
||||
);
|
||||
}
|
||||
|
||||
export async function buyGem(game: string) {
|
||||
const config = useRuntimeConfig();
|
||||
await $fetch(
|
||||
new URL(`games/${game}/turn/buyGem`, config.public.endpoint).href,
|
||||
{
|
||||
method: "POST",
|
||||
credentials: "include",
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export async function lockEffect(game: string, effectId: string) {
|
||||
const config = useRuntimeConfig();
|
||||
await $fetch(
|
||||
|
||||
Reference in New Issue
Block a user