blob: a01b32f9438c10ab596e045437df50ef38a0cac5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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());
await app.listen(3000);
}
bootstrap();
|