Files
revenue-fe/src/config/api.config.ts
fro1991 76d65df562 udpate
2025-02-01 23:51:53 +07:00

13 lines
332 B
TypeScript

interface apiConfigProps {
service_dashboard: string;
service_master_data: string;
}
const API_URL = import.meta.env.VITE_APP_API_URL;
const apiConfig: apiConfigProps = {
service_dashboard: `${API_URL}${import.meta.env.VITE_ENV != 'development' ? '/d' : ""}`,
service_master_data: `${API_URL}/m`,
};
export { apiConfig };