Swagger UI: add "Back to Flamenco" link

Add a link from the API section to the main Flamenco web interface.
This commit is contained in:
Sybren A. Stüvel 2023-02-03 13:39:27 +01:00
parent 3a16456d5b
commit 3bedc2c87a

View File

@ -25,10 +25,19 @@
margin: 0; margin: 0;
background: #fafafa; background: #fafafa;
} }
</style> div#back-to-flamenco {
float: right;
}
div#back-to-flamenco a {
padding: 0.5em 2em 0.5em 0.5em;
text-decoration: none;
font-weight: bold;
}
</style>
</head> </head>
<body> <body>
<div id="back-to-flamenco"><a href="/">← Back to Flamenco</a></div>
<div id="swagger-ui"></div> <div id="swagger-ui"></div>
<script src="./swagger-ui-bundle.js" charset="UTF-8"> <script src="./swagger-ui-bundle.js" charset="UTF-8">
@ -49,7 +58,7 @@
plugins: [ plugins: [
SwaggerUIBundle.plugins.DownloadUrl SwaggerUIBundle.plugins.DownloadUrl
], ],
layout: "StandaloneLayout" layout: "BaseLayout",
}); });
// End Swagger UI call region // End Swagger UI call region