misc_pterodactyl-panel/resources/scripts/api/server/files/deleteFile.ts

10 lines
296 B
TypeScript
Raw Normal View History

2019-08-04 22:46:58 +00:00
import http from '@/api/http';
export default (uuid: string, location: string): Promise<void> => {
return new Promise((resolve, reject) => {
http.post(`/api/client/servers/${uuid}/files/delete`, { location })
.then(() => resolve())
.catch(reject);
});
};