Alexander Rose 6 роки тому
батько
коміт
d1362cd9f9

+ 1 - 0
src/servers/common/swagger-ui/index.ts

@@ -19,6 +19,7 @@ export function swaggerUiAssetsHandler(options?: ServeStaticOptions) {
 export interface SwaggerUIOptions {
     openapiJsonUrl: string
     apiPrefix: string
+    title: string
     shortcutIconLink: string
 }
 

+ 1 - 1
src/servers/common/swagger-ui/indexTemplate.html

@@ -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}
 

+ 1 - 0
src/servers/volume/server/web-api.ts

@@ -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
     }));
 }