import { LOBBY_GAME_API } from '#lib/configs/api' import type { PGSoftRequest } from '#lib/types' import type { BaseResponse } from '#lib/types/api' import { useAPI } from '#lib/composables' export const useGameService = () => { /** * Fetches the HTML content for a PGSoft game. * * @param {PGSoftRequest} data - The request data needed to fetch the HTML. * @returns {Promise>} - A promise resolving to the API response containing the HTML content. */ const getPGSoftGameHTML = async (body: PGSoftRequest) => { const { data } = await useAPI>( LOBBY_GAME_API.PG_SOFT_GAMES_ENTRY, { body, method: 'post', }, ) return data } return { getPGSoftGameHTML, } }