From 7a5da2773e4fae68c1aea287482bdf22b8d09d1c Mon Sep 17 00:00:00 2001 From: Prudent Bird Date: Wed, 24 Jul 2024 13:12:05 +0100 Subject: [PATCH] resolved review --- .env.example | 1 + src/main.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index f34051ee3..1cbe2b1c3 100644 --- a/.env.example +++ b/.env.example @@ -12,6 +12,7 @@ DB_ENTITIES=dist/src/modules/**/entities/**/*.entity{.ts,.js} DB_MIGRATIONS=dist/**/migrations/*{.ts,.js} DB_TYPE=postgres +DB_SSL=true JWT_SECRET=someSecrets JWT_EXPIRY_TIMEFRAME=3600 diff --git a/src/main.ts b/src/main.ts index a8afa28f4..2fda7e5fd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,7 +30,7 @@ async function bootstrap() { app.enable('trust proxy'); app.useLogger(logger); app.enableCors(); - app.setGlobalPrefix('api/v1', { exclude: ['/', 'health', 'api', 'api/v1'] }); + app.setGlobalPrefix('api/v1', { exclude: ['/', 'health', 'api', 'api/v1', 'api/docs'] }); // TODO: set options for swagger docs const options = new DocumentBuilder()