code cleanup and fixes

This commit is contained in:
subnub
2024-07-26 07:10:02 -04:00
parent 838de4bedd
commit 19abbb0387
12 changed files with 224 additions and 265 deletions
+6 -1
View File
@@ -92,10 +92,15 @@ export const getFileThumbnailAPI = async (thumbnailID: string) => {
export const getFileFullThumbnailAPI = async (fileID: string) => {
const url = `http://localhost:5173/api/file-service/full-thumbnail/${fileID}`;
const response = await axios.get(url, {
responseType: "arraybuffer",
});
return response.data;
const imgFile = new Blob([response.data]);
const imgUrl = URL.createObjectURL(imgFile);
return imgUrl;
};
export const getVideoTokenAPI = async () => {