OptionalswaggerDoc: JsonObjectJSON object with the API schema.
Optionalopts: SwaggerUiOptionsswagger-ui-express options.
Optionaloptions: SwaggerOptionscustom Swagger options.
OptionalcustomCss: stringstring with a custom CSS to embed into the page.
OptionalcustomfavIcon: stringlink to a custom favicon.
OptionalswaggerUrl: stringURL of the Swagger API schema, can be specified instead of the swaggerDoc.
OptionalcustomSiteTitle: stringcustom title for a page.
an express middleware function that returns the generated HTML page.
Creates a middleware function that returns the pre-generated HTML file for the Swagger UI page.