mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00: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:
parent
f0da875e37
commit
ac9f6921cc
2 changed files with 17 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue