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