fix: use 'startRestoreFlow' on onboarding page

This commit is contained in:
izzy
2025-11-21 11:18:19 +00:00
parent 3933b23e2c
commit 8405a9bf0c
5 changed files with 79 additions and 6 deletions

View File

@@ -1866,6 +1866,15 @@ export function listBackups(opts?: Oazapfts.RequestOpts) {
...opts
}));
}
/**
* Start backup restore flow
*/
export function startRestoreFlow(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchText("/admin/maintenance/backups/restore", {
...opts,
method: "POST"
}));
}
/**
* Delete backup
*/