This commit is contained in:
wayanrivan
2025-04-28 16:58:09 +07:00
parent 8bdad1bb3f
commit 44c3bf46f4
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ interface apiConfigProps {
service_dashboard: string; service_dashboard: string;
service_customer: string; service_customer: string;
service_master_data: string; service_master_data: string;
service_master_data2: string; // service_master_data2: string;
service_transaction: string; service_transaction: string;
service_wallet: string; service_wallet: string;
transaction: string; transaction: string;
@ -19,7 +19,7 @@ const apiConfig: apiConfigProps = {
// service_dashboard: `${API_URL}${import.meta.env.VITE_ENV != 'development' ? '/d' : ''}`, // service_dashboard: `${API_URL}${import.meta.env.VITE_ENV != 'development' ? '/d' : ''}`,
service_dashboard: `${API_URL}/d`, service_dashboard: `${API_URL}/d`,
service_customer: `${API_URL}/c`, service_customer: `${API_URL}/c`,
service_master_data2: `${API_URL}/m`, // service_master_data2: `${API_URL}/m`,
service_master_data: `${API_URL}/t`, service_master_data: `${API_URL}/t`,
service_transaction: `${API_URL}/tt`, service_transaction: `${API_URL}/tt`,
service_wallet: `${API_URL}/w`, service_wallet: `${API_URL}/w`,

View File

@ -44,7 +44,7 @@ const initialProps: ContextProps = {
const AccountUserProfileContext = createContext<ContextProps>(initialProps); const AccountUserProfileContext = createContext<ContextProps>(initialProps);
const API_URL = apiConfig.service_dashboard; const API_URL = apiConfig.service_dashboard;
const API_URL2 = apiConfig.service_master_data2; const API_URL2 = apiConfig.service_customer;
const AccountUserProfileContextProvider = ({ children }: { children: React.ReactNode }) => { const AccountUserProfileContextProvider = ({ children }: { children: React.ReactNode }) => {
const { login } = useAuthContext(); const { login } = useAuthContext();