aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.ts
blob: fb1b1bd73c0c0dbcbeaf783407d4927bc564c142 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ValidationPipe } from '@nestjs/common';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  app.useGlobalPipes(new ValidationPipe());
  app.enableCors();
  await app.listen(3000);
}
bootstrap();