更改了接口文档详情

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()); app.useGlobalFilters(new DbExceptionFilter());
const config = new DocumentBuilder() const config = new DocumentBuilder()
.setTitle('Cats example') .setTitle('TYT example')
.setDescription('The cats API description') .setDescription('The TYT API description')
.setVersion('1.0') .setVersion('1.0')
.addTag('cats') .addServer('http://localhost:3000', 'localhost')
.addTag('TYT')
.build(); .build();
const documentFactory = () => SwaggerModule.createDocument(app, config); const documentFactory = () => SwaggerModule.createDocument(app, config);
SwaggerModule.setup('api', app, documentFactory, { SwaggerModule.setup('api', app, documentFactory, {