corrcted routes

This commit is contained in:
2025-09-09 16:39:36 +02:00
parent 5f1f29e6fd
commit bc47dac791
9 changed files with 1129 additions and 195 deletions
+11 -2
View File
@@ -6,11 +6,20 @@ import { DocumentBuilder } from '@nestjs/swagger';
import { AuthGuard } from './common/guards/auth.guard';
import { JwtService } from '@nestjs/jwt';
import { RolesGuard } from './common/guards/roles.guard';
import { ValidationPipe } from '@nestjs/common';
async function bootstrap() {
const app = await NestFactory.create(AppModule,
{logger: ['error', 'warn', 'log', 'debug', 'verbose']});
app.enableCors();
{ logger: ['error', 'warn', 'log', 'debug', 'verbose'] });
app.enableCors();
app.useGlobalPipes(
new ValidationPipe({
whitelist: true,
forbidNonWhitelisted: true,
transform: true,
})
);
const configService = app.get(ConfigService);