Add support for copying files.

This commit is contained in:
Dane Everitt 2019-08-04 15:34:46 -07:00
parent 5f59210c85
commit 2f9128508a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
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);
});
};