2022-03-29 11:27:49 -06:00
|
|
|
import { NestFactory } from '@nestjs/core';
|
2022-04-04 20:02:54 -05:00
|
|
|
import { ValidationPipe } from '@nestjs/common';
|
2022-03-29 11:27:49 -06:00
|
|
|
import { AppModule } from './app.module';
|
|
|
|
|
|
|
|
|
|
async function bootstrap() {
|
|
|
|
|
const app = await NestFactory.create(AppModule);
|
2022-04-04 20:02:54 -05:00
|
|
|
app.useGlobalPipes(new ValidationPipe({ whitelist: true }));
|
2022-03-29 11:27:49 -06:00
|
|
|
await app.listen(3000);
|
|
|
|
|
}
|
|
|
|
|
bootstrap();
|