Files
99AI/service/src/common/swagger/index.ts
vastxie 86e2eecc1f v4.3.0
2025-05-31 02:28:46 +08:00

14 lines
415 B
TypeScript

import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
const swaggerOptions = new DocumentBuilder()
.setTitle('AIWeb Team api document')
.setDescription('AIWeb Team api document')
.setVersion('1.0.0')
.addBearerAuth()
.build();
export function createSwagger(app) {
const document = SwaggerModule.createDocument(app, swaggerOptions);
SwaggerModule.setup('/swagger/docs', app, document);
}