import { http } from '@/services/api/http'
import { buildUrl, endpoints } from '@/services/api/endpoints'

export const apiGetProvinces = () => http.get(endpoints.provinceList)

export const apiGetCitiesOfProvince = (provinceId) =>
  http.get(buildUrl(endpoints.citiesList, { provinceId }))
