response
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import { ValidationPipe } from '@nestjs/common';
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
import { ApiExceptionFilter } from './common/filters/api-exception.filter';
|
||||
import { TransformResponseInterceptor } from './common/interceptors/transform-response.interceptor';
|
||||
import { setupSwagger } from './swagger/swagger.setup';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
|
||||
app.useGlobalInterceptors(new TransformResponseInterceptor());
|
||||
app.useGlobalFilters(new ApiExceptionFilter());
|
||||
|
||||
// Global validation pipe
|
||||
app.useGlobalPipes(
|
||||
new ValidationPipe({
|
||||
|
||||
Reference in New Issue
Block a user