import { API_ROOT } from 'config' import { callApi } from 'helpers' type SaveFavouriteTeamType = { answer_id: number, survey_id: number, } export const saveFavouriteTeam = async ({ answer_id, survey_id, }: SaveFavouriteTeamType): Promise<{status: string}> => { const config = { body: { answer_id, survey_id, }, method: 'POST', } return callApi({ config, url: `${API_ROOT}/v1/survey/answer`, }) }