chore: add email service and password service

This commit is contained in:
mahyargdz
2025-01-20 09:13:27 +03:30
parent 7347a696d0
commit 9701c51445
18 changed files with 10575 additions and 24 deletions
+10 -1
View File
@@ -1,4 +1,4 @@
import { Logger } from "@nestjs/common";
import { Logger, ValidationPipe } from "@nestjs/common";
import { ConfigService } from "@nestjs/config";
import { NestFactory } from "@nestjs/core";
import { FastifyAdapter, NestFastifyApplication } from "@nestjs/platform-fastify";
@@ -9,6 +9,15 @@ import { getSwaggerDocument } from "./configs/swagger.config";
async function bootstrap() {
const logger = new Logger("APP");
const app = await NestFactory.create<NestFastifyApplication>(AppModule, new FastifyAdapter());
app.useGlobalPipes(new ValidationPipe({ transform: true, whitelist: true }));
app.enableCors({
origin: true,
credentials: true,
optionsSuccessStatus: 204,
});
const configService = app.get<ConfigService>(ConfigService);
getSwaggerDocument(app);