import { get } from './client.js';

export async function fetchGeographicalAreas() {
  return get('/api/areageo');
}

export async function fetchProvinces() {
  return get('/api/areageo/provinces');
}

 export async function fetchCities(provinceId = null) {
  const query = provinceId ? `?ProvinceID=${encodeURIComponent(provinceId)}` : '';
  return get(`/api/areageo/cities${query}`);
 }
