Add support for copying files.

This commit is contained in:
Dane Everitt
2019-08-04 15:34:46 -07:00
parent 5f59210c85
commit 2f9128508a
5 changed files with 55 additions and 10 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/copy`, { location })
.then(() => resolve())
.catch(reject);
});
};