refactor: centralize domain values and enforce numeric lint

This commit is contained in:
2026-09-13 14:37:39 +03:00
parent 8ba005346d
commit 8637ad2f34
44 changed files with 543 additions and 174 deletions
@@ -3,6 +3,7 @@ import {
Controller,
Get,
HttpCode,
HttpStatus,
Post,
Req,
Res,
@@ -49,7 +50,7 @@ export class AuthController {
constructor(private readonly auth: AuthService) {}
@Post('register')
@HttpCode(200)
@HttpCode(HttpStatus.OK)
@ApiOkResponse({ type: AuthenticationDto })
async register(
@Body() credentials: CredentialsDto,
@@ -62,7 +63,7 @@ export class AuthController {
}
@Post('login')
@HttpCode(200)
@HttpCode(HttpStatus.OK)
@ApiOkResponse({ type: AuthenticationDto })
async login(
@Body() credentials: CredentialsDto,
@@ -75,7 +76,7 @@ export class AuthController {
}
@Post('refresh')
@HttpCode(200)
@HttpCode(HttpStatus.OK)
@ApiOkResponse({ type: AuthenticationDto })
async refresh(
@Req() request: Request,
@@ -92,7 +93,7 @@ export class AuthController {
}
@Post('logout')
@HttpCode(204)
@HttpCode(HttpStatus.NO_CONTENT)
@ApiNoContentResponse()
async logout(
@Req() request: Request,