feat: establish backend foundation

This commit is contained in:
2026-08-12 23:04:21 +03:00
parent f8dcfb71c1
commit ab21426478
24 changed files with 2313 additions and 382 deletions
@@ -0,0 +1,19 @@
import { ApiInternalServerErrorResponse, ApiProperty } from '@nestjs/swagger';
export class SafeErrorResponseDto {
@ApiProperty({ example: 500 })
statusCode: number;
@ApiProperty({ example: 'Internal server error' })
message: string;
@ApiProperty({ example: '/api/v1' })
path: string;
}
export function ApiSafeErrorResponse(): MethodDecorator & ClassDecorator {
return ApiInternalServerErrorResponse({
description: 'Internal server error',
type: SafeErrorResponseDto,
});
}