Revert "feat: improve asset loading (#484)"

This reverts commit f3ae225d64.
This commit is contained in:
bszabo
2024-06-26 10:02:59 -04:00
committed by GitHub
parent c84e3229f6
commit ba8141ea6a
47 changed files with 404 additions and 635 deletions

View File

@@ -26,16 +26,9 @@ export const apiMethods = {
fetchStudioView: ({ blockId, studioEndpointUrl }) => get(
urls.blockStudioView({ studioEndpointUrl, blockId }),
),
fetchImages: ({ learningContextId, studioEndpointUrl, pageNumber }) => {
const params = {
asset_type: 'Images',
page: pageNumber,
};
return get(
`${urls.courseAssets({ studioEndpointUrl, learningContextId })}`,
{ params },
);
},
fetchAssets: ({ learningContextId, studioEndpointUrl }) => get(
urls.courseAssets({ studioEndpointUrl, learningContextId }),
),
fetchVideos: ({ studioEndpointUrl, learningContextId }) => get(
urls.courseVideos({ studioEndpointUrl, learningContextId }),
),