Revert "feat: improve asset loading (#484)"
This reverts commit f3ae225d64.
This commit is contained in:
@@ -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 }),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user