Skip to content

Commit

Permalink
chore: add base path for swagger docment
Browse files Browse the repository at this point in the history
  • Loading branch information
timi137137 committed Oct 20, 2024
1 parent 343567c commit 9fb2951
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export async function Bootstrap() {
.setTitle(config.get('SWAGGER_TITLE', 'Unknown'))
.setDescription(config.get('SWAGGER_DESCRIPTION', 'Unknown'))
.setVersion(config.get('SWAGGER_VERSION', '1.0'))
.addServer('/v1')
.build();
const document = SwaggerModule.createDocument(app, documentConfig);
SwaggerModule.setup('doc', app, document);
Expand Down

0 comments on commit 9fb2951

Please sign in to comment.