import { register } from '@/services/mock/registry'
import { endpoints } from '@/services/api/endpoints'
import { cities, provinces } from '@/services/mock/fixtures/common'

register('GET', endpoints.provinceList, () => ({ data: provinces }))

register('GET', endpoints.citiesList, ({ params }) => ({
  data: cities[params.provinceId] || [],
}))
