Point cross product recommendations url from learner_recommendations to edx-recommendations plugin. VAN-1596
13 lines
422 B
JavaScript
13 lines
422 B
JavaScript
import { StrictDict } from 'utils';
|
|
import { get, stringifyUrl } from 'data/services/lms/utils';
|
|
import urls from 'data/services/lms/urls';
|
|
|
|
export const getFetchUrl = () => (`${urls.getApiUrl()}/edx_recommendations/learner_dashboard/amplitude/`);
|
|
export const apiKeys = StrictDict({ user: 'user' });
|
|
|
|
const fetchRecommendedCourses = () => get(stringifyUrl(getFetchUrl()));
|
|
|
|
export default {
|
|
fetchRecommendedCourses,
|
|
};
|