misc_pterodactyl-panel/resources/scripts/api/server/files/deleteFiles.ts
2020-07-11 15:37:59 -07:00

9 lines
328 B
TypeScript

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