Skip to content

Commit

Permalink
add fav icon and update swagger HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Lefebvre committed Oct 24, 2023
1 parent 9a908a4 commit 7facb8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Binary file added swagger/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions swagger/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,27 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="SwaggerUI" />
<title>SwaggerUI</title>
<title>Substreams Clock API - SwaggerUI</title>
<link
rel="stylesheet"
href="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui.css"
href="https://unpkg.com/swagger-ui-dist@latest/swagger-ui.css"
/>
<link href="/favicon.png" rel="icon" type="image/x-icon" />
</head>
<body>
<div id="swagger-ui"></div>
<script
src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-bundle.js"
src="https://unpkg.com/swagger-ui-dist@latest/swagger-ui-bundle.js"
crossorigin
></script>
<script
src="https://unpkg.com/swagger-ui-dist@4.5.0/swagger-ui-standalone-preset.js"
src="https://unpkg.com/swagger-ui-dist@latest/swagger-ui-standalone-preset.js"
crossorigin
></script>
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: `${window.location.origin}/openapi`,
url: "/openapi",
dom_id: "#swagger-ui",
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
layout: "StandaloneLayout",
Expand Down

0 comments on commit 7facb8e

Please sign in to comment.