From f22469d400607b4b74f83096a6171322153bf41a Mon Sep 17 00:00:00 2001 From: EL <1175065040@qq.com> Date: Thu, 12 Mar 2026 17:07:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BA=86=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 0940b38..7ac90ed 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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, {