From 101bff96ecd5050c731e1b4113ececf6e7c91ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Tue, 9 Dec 2025 20:51:57 +0300 Subject: [PATCH] main.js fix prefix --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 7739aa5..93525a1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,7 +5,7 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); - app.setGlobalPrefix('api'); + app.setGlobalPrefix(''); const config = new DocumentBuilder() .setTitle('Travelmarine backend') @@ -14,7 +14,7 @@ async function bootstrap() { .build(); const documentFactory = () => SwaggerModule.createDocument(app, config); - SwaggerModule.setup('api', app, documentFactory); + SwaggerModule.setup('/', app, documentFactory); await app.listen(process.env.PORT ?? 4000); }