import { API_ROOT } from 'config'
import { callApi } from 'helpers'

export const addCard = async (token: string) => {
  const config = {
    body: {
      token,
    },
  }

  return callApi({
    config,
    url: `${API_ROOT}/account/attach-card`,
  })
}
