mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat: add server.versionCheck permission (#20555)
* add server.versionCheck permission * getVersionCheck is no admin-route
This commit is contained in:
parent
42b78c59b5
commit
a91bb399f0
6 changed files with 17 additions and 3 deletions
5
mobile/openapi/lib/api/server_api.dart
generated
5
mobile/openapi/lib/api/server_api.dart
generated
|
|
@ -477,7 +477,9 @@ class ServerApi {
|
|||
return null;
|
||||
}
|
||||
|
||||
/// Performs an HTTP 'GET /server/version-check' operation and returns the [Response].
|
||||
/// This endpoint requires the `server.versionCheck` permission.
|
||||
///
|
||||
/// Note: This method returns the HTTP [Response].
|
||||
Future<Response> getVersionCheckWithHttpInfo() async {
|
||||
// ignore: prefer_const_declarations
|
||||
final apiPath = r'/server/version-check';
|
||||
|
|
@ -503,6 +505,7 @@ class ServerApi {
|
|||
);
|
||||
}
|
||||
|
||||
/// This endpoint requires the `server.versionCheck` permission.
|
||||
Future<VersionCheckStateResponseDto?> getVersionCheck() async {
|
||||
final response = await getVersionCheckWithHttpInfo();
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue