export const API_BASE_URL = import.meta.env.VITE_URL_API_DESA_PLUS export const API_URLS = { getVillages: (page: number, search: string) => `${API_BASE_URL}/api/monitoring/get-villages?page=${page}&search=${encodeURIComponent(search)}`, infoVillages: (id: string) => `${API_BASE_URL}/api/monitoring/info-villages?id=${id}`, gridVillages: (id: string) => `${API_BASE_URL}/api/monitoring/grid-villages?id=${id}`, graphLogVillages: (id: string, time: string) => `${API_BASE_URL}/api/monitoring/graph-log-villages?id=${id}&time=${time}`, getUsers: (page: number, search: string) => `${API_BASE_URL}/api/monitoring/user?page=${page}&search=${encodeURIComponent(search)}`, getLogsAllVillages: (page: number, search: string) => `${API_BASE_URL}/api/monitoring/log-all-villages?page=${page}&search=${encodeURIComponent(search)}`, }