This commit is contained in:
2026-02-06 11:52:30 +03:00
parent 1812de0baf
commit fd7bf76abd
4 changed files with 289 additions and 6 deletions

View File

@ -4,11 +4,14 @@ import { ConfigService } from '@nestjs/config';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import helmet from 'helmet';
import { AppModule } from './app.module';
import { AllExceptionsFilter } from './common/all-exceptions.filter';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const configService = app.get(ConfigService);
app.useGlobalFilters(new AllExceptionsFilter());
// Security
app.use(helmet());