From 0af9d66d75c996aa7628ed15fe1cb9ab66299a31 Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Mon, 30 May 2022 18:28:41 -0500 Subject: [PATCH] SWAGGER_ROUTE --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 5b0ce39..e8b7227 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('api', app, document); + SwaggerModule.setup(process.env.SWAGGER_ROUTE, app, document); app.useGlobalPipes(new ValidationPipe({ whitelist: true })); await app.listen(process.env.API_PORT);