fix prefix

This commit is contained in:
Иван 2025-12-08 22:19:16 +03:00
parent bb5e577e56
commit 329e92b085
1 changed files with 1 additions and 3 deletions

View File

@ -5,8 +5,6 @@ import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.setGlobalPrefix('api');
const config = new DocumentBuilder()
.setTitle('Travelmarine backend')
.setDescription('Backend API for Travelmarine service')
@ -14,7 +12,7 @@ async function bootstrap() {
.build();
const documentFactory = () => SwaggerModule.createDocument(app, config);
SwaggerModule.setup('/api', app, documentFactory);
SwaggerModule.setup('api', app, documentFactory);
await app.listen(process.env.PORT ?? 4000);
}