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.
19 lines
367 B
19 lines
367 B
import { API_ROOT } from 'features/AuthServiceApp/config/routes'
|
|
import { callApi } from 'helpers'
|
|
|
|
export type GeoInfoType = {
|
|
city: string,
|
|
country_code: string,
|
|
time_zone: string,
|
|
}
|
|
|
|
export const getGeoInfo = async (): Promise<GeoInfoType> => {
|
|
const config = {
|
|
method: 'GET',
|
|
}
|
|
|
|
return callApi({
|
|
config,
|
|
url: `${API_ROOT}/geoinfo`,
|
|
})
|
|
}
|
|
|