From 96019ec072cd7323cec2d9ced02a848dfa85d6d1 Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Mon, 30 May 2022 18:48:57 -0500 Subject: [PATCH] sin valiabe SWAGGER_ROUTE --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);