更改了接口文档详情

This commit is contained in:
EL 2026-03-12 17:07:33 +08:00
parent 48a6cb99db
commit f22469d400

View File

@ -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, {