This commit is contained in:
2022-05-31 13:04:59 -05:00
parent 6d3a5270ea
commit 3302041062
+2 -1
View File
@@ -12,9 +12,10 @@ async function bootstrap() {
.setVersion('1.0')
.build();
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('/api', app, document);
SwaggerModule.setup('/api', app, document);
app.useGlobalPipes(new ValidationPipe({ whitelist: true }));
app.enableCors();
await app.listen(process.env.API_PORT);
}
bootstrap();