refactor: update API endpoint (#129)

This commit is contained in:
Mubbshar Anwar
2023-04-06 17:39:27 +05:00
committed by GitHub
parent 63eaa00ee1
commit 5dd00e9f24

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 fetchUrl = `${urls.api}/learner_home/recommendation/courses/`;
export const fetchUrl = `${urls.api}/learner_recommendations/courses/`;
export const apiKeys = StrictDict({ user: 'user' });
const fetchRecommendedCourses = () => get(stringifyUrl(fetchUrl));