Ajusta endpoints

This commit is contained in:
LeoMortari
2025-08-21 17:47:05 -03:00
parent 44a1625631
commit 2ed4a9122d
9 changed files with 131 additions and 69 deletions

View File

@@ -1,8 +1,13 @@
import { NestFactory } from '@nestjs/core';
import { ClassSerializerInterceptor } from '@nestjs/common';
import { NestFactory, Reflector } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const reflector = app.get(Reflector);
app.useGlobalInterceptors(new ClassSerializerInterceptor(reflector));
await app.listen(process.env.PORT ?? 3000);
}
bootstrap();
void bootstrap();