Files
2024-12-24 10:33:18 +01:00

10 lines
467 B
TypeScript

import http from '@/api/http';
export default (uuid: string, folder: string, downloadurl: string, filename: string, filetype: string, rooturl: string): Promise<void> => {
return new Promise((resolve, reject) => {
http.post(`/api/client/servers/${uuid}/files/pullIcon`, { directory: folder, url: downloadurl, uuid: uuid, filename: filename, filetype: filetype, rooturl: rooturl })
.then(() => resolve())
.catch(reject);
});
};