corrcted routes
This commit is contained in:
+11
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user