Skip to content
Snippets Groups Projects
Commit d1362cd9 authored by Alexander Rose's avatar Alexander Rose
Browse files

title for api html

parent 1c51f773
No related branches found
No related tags found
No related merge requests found
......@@ -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
}));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment