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

29 lines
477 B

import {
DATA_URL,
PROCEDURES,
SportTypes,
} from 'config'
import { callApi } from 'helpers'
const proc = PROCEDURES.get_user_preferences
export type UserPreferences = Array<{
sport: SportTypes,
tournament_id: number,
}>
export const getUserPreferences = async () => {
const config = {
body: {
params: {},
proc,
},
}
const response: UserPreferences | null = await callApi({
config,
url: DATA_URL,
})
return response || []
}