Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make methods of swagger module protected #2998

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/swagger-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class SwaggerModule {
return this.metadataLoader.load(metadata);
}

private static serveStatic(
protected static serveStatic(
finalPath: string,
app: INestApplication,
customStaticPath?: string
Expand All @@ -79,7 +79,7 @@ export class SwaggerModule {
}
}

private static serveDocuments(
protected static serveDocuments(
finalPath: string,
urlLastSubdirectory: string,
httpAdapter: HttpServer,
Expand Down Expand Up @@ -115,7 +115,7 @@ export class SwaggerModule {
this.serveDefinitions(httpAdapter, getBuiltDocument, options);
}

private static serveSwaggerUi(
protected static serveSwaggerUi(
finalPath: string,
urlLastSubdirectory: string,
httpAdapter: HttpServer,
Expand Down Expand Up @@ -225,7 +225,7 @@ export class SwaggerModule {
}
}

private static serveDefinitions(
protected static serveDefinitions(
httpAdapter: HttpServer,
getBuiltDocument: () => OpenAPIObject,
options: {
Expand Down