Delete support & cleaned up copy logic

This commit is contained in:
Dane Everitt
2019-08-04 15:46:58 -07:00
parent 2f9128508a
commit 456473ad0f
3 changed files with 51 additions and 37 deletions

View File

@@ -0,0 +1,9 @@
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);
});
};