Skip to content

Commit 6cb7bb3

Browse files
authored
Merge branch 'program-dashboard-feature' into mfrank/add-program-list-page
2 parents 5f0999f + 745210b commit 6cb7bb3

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { getAuthenticatedHttpClient } from '@edx/frontend-platform/auth';
2+
import { getConfig } from '@edx/frontend-platform';
3+
4+
export async function getProgramsListData() {
5+
const url = `${getConfig().LMS_BASE_URL}/api/dashboard/v0/programs/`;
6+
const response = await getAuthenticatedHttpClient().get(url);
7+
return response;
8+
}

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ subscribe(APP_READY, () => {
4848
<Route path="programs/:uuid" element={<div>program details page</div>} />
4949
</>
5050
)}
51-
{/* <Route path="*" element={<Navigate to="/" replace />} /> */}
51+
{/* <Route path="*" element={<Navigate to="/" replace />} />
5252
</Routes>
5353
<FooterSlot />
5454
</AppProvider>

0 commit comments

Comments
 (0)