fix: shared check for server setup availability (#30311)

* fix: shared check for server setup availability

* chore: add medium test

* feat: require @Authenticated decorator everywhere

* fix: lints
This commit is contained in:
bo0tzz
2026-07-30 15:12:25 -04:00
committed by GitHub
parent 1f16fe16c2
commit a316ba35ca
24 changed files with 249 additions and 66 deletions
@@ -71,6 +71,7 @@ export class DatabaseBackupController {
description: 'Put Immich into maintenance mode to restore a backup (Immich must not be configured)',
history: new HistoryBuilder().added('v2.5.0').alpha('v2.5.0'),
})
@Authenticated({ public: true, setup: true })
async startDatabaseRestoreFlow(
@GetLoginDetails() loginDetails: LoginDetails,
@Res({ passthrough: true }) res: Response,