const isDev = import.meta.env.MODE === "development"; export const BASE_URL = isDev ? import.meta.env.VITE_API_URL_DEV : "/api"; export const API_ENDPOINTS = { APP_VERSION: { GET_VERSION: `${BASE_URL}/AppVersion/version`, UPLOAD: `${BASE_URL}/AppVersion/upload`, GET_SOFTWARE: `${BASE_URL}/AppVersion/msifiles`, }, DEVICE_COMM: { DOWNLOAD_MSI: `${BASE_URL}/DeviceComm/installmsi`, GET_ROOM_LIST: `${BASE_URL}/DeviceComm/rooms`, GET_DEVICE_FROM_ROOM: (roomName: string) => `${BASE_URL}/DeviceComm/room/${roomName}`, UPDATE_AGENT: `${BASE_URL}/DeviceComm/updateagent`, }, SSE_EVENTS: { DEVICE_ONLINE: `${BASE_URL}/Sse/events/onlineDevices`, DEVICE_OFFLINE: `${BASE_URL}/Sse/events/offlineDevices`, }, };