add login validation

This commit is contained in:
2026-04-17 13:34:57 +01:00
commit 36b2eee680
19 changed files with 6834 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors({
origin: ["http://localhost:3000"], // 👈 array is safer
methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
allowedHeaders: ["Content-Type", "Authorization"],
credentials: true,
});
await app.listen(process.env.PORT ?? 3001);
}
bootstrap();