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
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
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);
});
};