mirror of
https://github.com/barkeser2002/pterodactyl-addons.git
synced 2026-09-25 13:46:05 +03:00
10 lines
340 B
TypeScript
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);
|
|
});
|
|
};
|