Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (appConfigs.nodeEnv === NodeEnv.development) {
- const options = new DocumentBuilder()
- .setTitle('document-title')
- .setDescription('A short description.')
- .setVersion('1.0')
- .addBearerAuth({
- type: 'apiKey',
- in: 'header',
- name: 'authorization',
- })
- .build();
- const document = SwaggerModule.createDocument(app, options);
- SwaggerModule.setup(
- configService.get('SWAGGER_ROUTE'),
- app,
- document,
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement