ui(files): add pull file modal
This commit is contained in:
parent
01242a805d
commit
3c2a6e1136
14 changed files with 211 additions and 42 deletions
9
resources/scripts/api/server/files/pullFile.ts
Normal file
9
resources/scripts/api/server/files/pullFile.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import http from '@/api/http';
|
||||
|
||||
export default (uuid: string, directory: string, url: string): Promise<void> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.post(`/api/client/servers/${uuid}/files/pull`, { root: directory, url })
|
||||
.then(() => resolve())
|
||||
.catch(reject);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue