lots more changes

This commit is contained in:
subnub
2024-06-27 02:10:03 -04:00
parent b2494a25bc
commit 99201318b5
18 changed files with 339 additions and 334 deletions
+12
View File
@@ -80,6 +80,18 @@ export const getFileThumbnailAPI = async (thumbnailID: string) => {
return imgUrl;
};
export const getSuggestedListAPI = async ({
queryKey,
}: QueryFunctionContext<[string, { searchText: string }]>) => {
const [_key, { searchText }] = queryKey;
const response = await axios.get(`/file-service/suggested-list`, {
params: {
search: searchText,
},
});
return response.data;
};
// PATCH
export const renameFileAPI = async (fileID: string, name: string) => {
const response = await axios.patch(`/file-service/rename`, {