fix: update dashboard recommendations url (#195)

Co-authored-by: Ben Warzeski <bwarzeski@edx.org>
Co-authored-by: Matthew Carter <mcarter@edx.org>
This commit is contained in:
Mubbshar Anwar
2023-08-24 11:12:39 +05:00
committed by GitHub
parent b41eee47c9
commit 8fef92d94d

View File

@@ -2,7 +2,7 @@ import { StrictDict } from 'utils';
import { get, stringifyUrl } from 'data/services/lms/utils';
import urls from 'data/services/lms/urls';
export const getFetchUrl = () => (`${urls.getApiUrl()}/learner_recommendations/courses/`);
export const getFetchUrl = () => (`${urls.getApiUrl()}/api/edx_recommendations/learner_dashboard/amplitude/`);
export const apiKeys = StrictDict({ user: 'user' });
const fetchRecommendedCourses = () => get(stringifyUrl(getFetchUrl()));