@@ -19,6 +19,7 @@ export function swaggerUiAssetsHandler(options?: ServeStaticOptions) {
export interface SwaggerUIOptions {
openapiJsonUrl: string
apiPrefix: string
+ title: string
shortcutIconLink: string
}
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
- <title>Swagger UI</title>
+ <title>${title}</title>
<link rel="stylesheet" type="text/css" href="${apiPrefix}/swagger-ui.css" >
${shortcutIconLink}
@@ -45,6 +45,7 @@ export default function init(app: express.Express) {
app.get(makePath(''), swaggerUiIndexHandler({
openapiJsonUrl: makePath('openapi.json'),
apiPrefix: ServerConfig.apiPrefix,
+ title: 'VolumeServer API',
shortcutIconLink
}));