import { INestApplication, ValidationPipe } from '@nestjs/common'; export function configureApplication(app: INestApplication): void { app.setGlobalPrefix('api'); app.useGlobalPipes( new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true, transform: true, }), ); }