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

@@ -419,6 +419,33 @@
"x-immich-state": "Alpha"
}
},
"/admin/maintenance/backups/restore": {
"post": {
"description": "Put Immich into maintenance mode to restore a backup (Immich must not be configured)",
"operationId": "startRestoreFlow",
"parameters": [],
"responses": {
"201": {
"description": ""
}
},
"summary": "Start backup restore flow",
"tags": [
"Maintenance (admin)"
],
"x-immich-history": [
{
"version": "v9.9.9",
"state": "Added"
},
{
"version": "v9.9.9",
"state": "Alpha"
}
],
"x-immich-state": "Alpha"
}
},
"/admin/maintenance/backups/{filename}": {
"delete": {
"description": "Delete a backup by its filename",

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
*/