Can import ZIP
This commit is contained in:
@ -20,4 +20,24 @@ export class BackupApi {
|
||||
formData: fd,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* ZIP Export
|
||||
*/
|
||||
static get ZIPExportURL(): string {
|
||||
return APIClient.backendURL() + "/backup/zip/export";
|
||||
}
|
||||
|
||||
/**
|
||||
* ZIP import
|
||||
*/
|
||||
static async ZIPImport(file: File): Promise<void> {
|
||||
const fd = new FormData();
|
||||
fd.append("file", file);
|
||||
await APIClient.exec({
|
||||
method: "POST",
|
||||
uri: "/backup/zip/import",
|
||||
formData: fd,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user