You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
513 B
13 lines
513 B
import { type INestApplication, ValidationPipe } from '@nestjs/common';
|
|
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
|
|
|
|
export const configureApp = (app: INestApplication<unknown>) => {
|
|
app.useGlobalPipes(new ValidationPipe({ transform: true }));
|
|
|
|
const config = new DocumentBuilder()
|
|
.setTitle('Test joyn assignment')
|
|
.setVersion('1.0')
|
|
.build();
|
|
const document = SwaggerModule.createDocument(app, config);
|
|
SwaggerModule.setup('api', app, document);
|
|
};
|
|
|