Delete support & cleaned up copy logic
This commit is contained in:
parent
2f9128508a
commit
456473ad0f
3 changed files with 51 additions and 37 deletions
9
resources/scripts/api/server/files/deleteFile.ts
Normal file
9
resources/scripts/api/server/files/deleteFile.ts
Normal 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);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue