更改了接口文档详情
This commit is contained in:
parent
48a6cb99db
commit
f22469d400
@ -15,10 +15,11 @@ async function bootstrap() {
|
||||
);
|
||||
app.useGlobalFilters(new DbExceptionFilter());
|
||||
const config = new DocumentBuilder()
|
||||
.setTitle('Cats example')
|
||||
.setDescription('The cats API description')
|
||||
.setTitle('TYT example')
|
||||
.setDescription('The TYT API description')
|
||||
.setVersion('1.0')
|
||||
.addTag('cats')
|
||||
.addServer('http://localhost:3000', 'localhost')
|
||||
.addTag('TYT')
|
||||
.build();
|
||||
const documentFactory = () => SwaggerModule.createDocument(app, config);
|
||||
SwaggerModule.setup('api', app, documentFactory, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user