import appConfig from 'config'; import { client } from 'utils/api'; const clientSystem = client(appConfig.server.systemApiUrl); const fetchCategories = () => clientSystem.get('/categories'); const fetchSubCategories = () => clientSystem.get('/sub-categories'); const fetchPaymentTokens = () => clientSystem.get('/payment-tokens'); // const fetchSystemConfig = () => client.get('/system'); export const systemService = { fetchCategories, fetchSubCategories, fetchPaymentTokens, };