mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(server): add missing history metadata to getAuthStatus endpoint (#25927)
* fix(server): add missing history metadata to getAuthStatus endpoint * chore: regenerate openapi specs
This commit is contained in:
@@ -4959,7 +4959,22 @@
|
|||||||
"summary": "Retrieve auth status",
|
"summary": "Retrieve auth status",
|
||||||
"tags": [
|
"tags": [
|
||||||
"Authentication"
|
"Authentication"
|
||||||
]
|
],
|
||||||
|
"x-immich-history": [
|
||||||
|
{
|
||||||
|
"version": "v1",
|
||||||
|
"state": "Added"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "v1",
|
||||||
|
"state": "Beta"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "v2",
|
||||||
|
"state": "Stable"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"x-immich-state": "Stable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/auth/validateToken": {
|
"/auth/validateToken": {
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ export class AuthController {
|
|||||||
summary: 'Retrieve auth status',
|
summary: 'Retrieve auth status',
|
||||||
description:
|
description:
|
||||||
'Get information about the current session, including whether the user has a password, and if the session can access locked assets.',
|
'Get information about the current session, including whether the user has a password, and if the session can access locked assets.',
|
||||||
|
history: new HistoryBuilder().added('v1').beta('v1').stable('v2'),
|
||||||
})
|
})
|
||||||
getAuthStatus(@Auth() auth: AuthDto): Promise<AuthStatusResponseDto> {
|
getAuthStatus(@Auth() auth: AuthDto): Promise<AuthStatusResponseDto> {
|
||||||
return this.service.getAuthStatus(auth);
|
return this.service.getAuthStatus(auth);
|
||||||
|
|||||||
Reference in New Issue
Block a user