|
|
|
@ -1,4 +1,4 @@ |
|
|
|
import { DATA_URL } from 'config' |
|
|
|
import { API_ROOT } from 'config' |
|
|
|
import { callApi } from 'helpers' |
|
|
|
import { callApi } from 'helpers' |
|
|
|
|
|
|
|
|
|
|
|
import type { MatchesResponse, MatchesBySection } from './types' |
|
|
|
import type { MatchesResponse, MatchesBySection } from './types' |
|
|
|
@ -16,7 +16,7 @@ export const requestMatches = async (config: Config): Promise<MatchesBySection> |
|
|
|
video_content: data, |
|
|
|
video_content: data, |
|
|
|
}: MatchesResponse = await callApi({ |
|
|
|
}: MatchesResponse = await callApi({ |
|
|
|
config, |
|
|
|
config, |
|
|
|
url: DATA_URL, |
|
|
|
url: `${API_ROOT}/v1/data/get-matches/`, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
|