diff --git a/src/main.ts b/src/main.ts index e8b7227..aa141f0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,7 +12,7 @@ async function bootstrap() { .setVersion('1.0') .build(); const document = SwaggerModule.createDocument(app, config); - SwaggerModule.setup(process.env.SWAGGER_ROUTE, app, document); + SwaggerModule.setup('/api', app, document); app.useGlobalPipes(new ValidationPipe({ whitelist: true })); await app.listen(process.env.API_PORT);