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

10 lines
340 B
TypeScript

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