main.js fix prefix

This commit is contained in:
Иван 2025-12-09 20:51:57 +03:00
parent 7c5b4d3515
commit 101bff96ec
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}