From 824815b92132b5e898495d664d8c42b54537079c Mon Sep 17 00:00:00 2001 From: sdraris Date: Tue, 30 Sep 2025 11:03:50 +0200 Subject: [PATCH] added global prefix as a start to requests --- src/main.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index a6a8300..a9ae0ee 100644 --- a/src/main.ts +++ b/src/main.ts @@ -41,11 +41,10 @@ async function bootstrap() { }, 'access-token', ) + .addServer('/api/v1') .build(); - const document = SwaggerModule.createDocument(app, config, { - ignoreGlobalPrefix: true, - }); + const document = SwaggerModule.createDocument(app, config); SwaggerModule.setup('api-docs', app, document);