import { AxiosResponse } from 'axios' ; import { Logo , LogoVerifyResponse } from '@logo-quiz/models' ; import { restApi } from '../api/calls' ; export async function validateLogo ( id , guess ) { const result = await restApi . post ( `/logos/${ id }/validate` , { guess } ) ; return result . data ; } export async function fetchLogo ( id ) { const logo = await restApi . get ( `/logos/${ id }` ) ; return logo . data ; }