bex-twn/src/main.ts

11 lines
301 B
TypeScript
Raw Normal View History

2022-12-06 15:47:52 +00:00
import { ValidationPipe } from '@nestjs/common';
2022-12-06 09:53:52 +00:00
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
2022-12-06 15:47:52 +00:00
app.useGlobalPipes(new ValidationPipe());
2022-12-06 09:53:52 +00:00
await app.listen(3000);
}
bootstrap();