Skip to content

Commit

Permalink
resolved review
Browse files Browse the repository at this point in the history
  • Loading branch information
Prudent Bird committed Jul 24, 2024
1 parent f3eaabf commit 7a5da27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7a5da27

Please sign in to comment.