user service

This commit is contained in:
2026-06-28 19:44:47 +03:30
parent 9dbf3c43fa
commit 4fbb86663a
3 changed files with 8 additions and 20 deletions
+7 -1
View File
@@ -6,7 +6,13 @@ async function bootstrap() {
const app = await NestFactory.create(AppModule);
// Global validation pipe
app.useGlobalPipes(new ValidationPipe());
app.useGlobalPipes(
new ValidationPipe({
whitelist: true,
forbidNonWhitelisted: true,
transform: true,
}),
);
// Global prefix
app.setGlobalPrefix('api');