import { getConfig } from '@edx/frontend-platform'; import { get } from './utils'; import fakeData from 'data/services/lms/fakeData/courses'; /* import { StrictDict } from 'utils'; import { locationId } from 'data/constants/app'; import { paramKeys } from './constants'; import urls from './urls'; import { client, get, post, stringifyUrl, } from './utils'; */ /********************************************************************************* * GET Actions *********************************************************************************/ const initializeList = () => { const url = `${getConfig().LMS_BASE_URL}/learner/mock/home`; console.log({ url }); get(url).then(console.log); return Promise.resolve({ courses: [ ...fakeData.courseRunData, ...fakeData.entitlementData, ], ...fakeData.globalData, }); }; export default { initializeList };