|
|
@ -3,8 +3,12 @@ import { NestFactory } from '@nestjs/core';
|
|
|
|
import { AppModule } from './app.module';
|
|
|
|
import { AppModule } from './app.module';
|
|
|
|
|
|
|
|
|
|
|
|
async function bootstrap() {
|
|
|
|
async function bootstrap() {
|
|
|
|
|
|
|
|
try {
|
|
|
|
const app = await NestFactory.create(AppModule);
|
|
|
|
const app = await NestFactory.create(AppModule);
|
|
|
|
app.useGlobalPipes(new ValidationPipe());
|
|
|
|
app.useGlobalPipes(new ValidationPipe());
|
|
|
|
await app.listen(3000);
|
|
|
|
await app.listen(3000);
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
throw e;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bootstrap();
|
|
|
|
bootstrap();
|
|
|
|