swagger
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { ValidationPipe } from '@nestjs/common';
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
import { setupSwagger } from './swagger/swagger.setup';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
@@ -17,6 +18,8 @@ async function bootstrap() {
|
||||
// Global prefix
|
||||
app.setGlobalPrefix('api');
|
||||
|
||||
setupSwagger(app);
|
||||
|
||||
// Cors
|
||||
const corsOrigin = process.env.CORS_ORIGIN;
|
||||
if (corsOrigin) {
|
||||
|
||||
Reference in New Issue
Block a user