mirror of
https://github.com/vastxie/99AI.git
synced 2026-04-24 19:24:25 +08:00
v4.3.0
This commit is contained in:
13
service/src/common/swagger/index.ts
Normal file
13
service/src/common/swagger/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user