You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spa_instat_tv/src/requests/getLandingStatus.tsx

21 lines
407 B

import { API_ROOT, SportTypes } from 'config'
import { callApi } from 'helpers'
type Args = {
matchId: number,
sportType: SportTypes,
}
export const getLandingStatus = async ({
matchId,
sportType,
}: Args): Promise<{landing_id: number | null}> => {
const config = {
method: 'GET',
}
return callApi({
config,
url: `${API_ROOT}/v1/landings/${sportType}/${matchId}/status`,
})
}