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/getUsaStates.tsx

22 lines
365 B

import {
API_ROOT,
} from 'config'
import { callApi } from 'helpers'
export type UsaStateType = {
id: number,
iso_2: string,
name_eng: string,
name_rus: string,
}
export const getUsaStates = (): Promise<Array<UsaStateType>> => {
const config = {
method: 'GET',
}
return callApi({
config,
url: `${API_ROOT}/v1/data/usa-states`,
})
}