fix: align auth success status contract

This commit is contained in:
2026-08-24 00:50:48 +03:00
parent c77b3cf782
commit 9bd3400264
3 changed files with 37 additions and 6 deletions
+3
View File
@@ -49,6 +49,7 @@ export class AuthController {
constructor(private readonly auth: AuthService) {}
@Post('register')
@HttpCode(200)
@ApiOkResponse({ type: AuthenticationDto })
async register(
@Body() credentials: CredentialsDto,
@@ -61,6 +62,7 @@ export class AuthController {
}
@Post('login')
@HttpCode(200)
@ApiOkResponse({ type: AuthenticationDto })
async login(
@Body() credentials: CredentialsDto,
@@ -73,6 +75,7 @@ export class AuthController {
}
@Post('refresh')
@HttpCode(200)
@ApiOkResponse({ type: AuthenticationDto })
async refresh(
@Req() request: Request,