This commit is contained in:
2026-07-02 20:11:44 +03:30
parent d20e5be9c8
commit 6b3327ee16
21 changed files with 262 additions and 7 deletions
+3
View File
@@ -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) {