mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-11 21:16:45 +00:00
⬆️ Update JS CDN to cdn.jsdelivr.net
as unpkg.com seems to have been down all day
This commit is contained in:
parent
64e904b12e
commit
26ffa5d9c8
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ def get_swagger_ui_html(*, openapi_url: str, title: str) -> HTMLResponse:
|
||||||
<! doctype html>
|
<! doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<link type="text/css" rel="stylesheet" href="//unpkg.com/swagger-ui-dist@3/swagger-ui.css">
|
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css">
|
||||||
<title>
|
<title>
|
||||||
"""
|
"""
|
||||||
+ title
|
+ title
|
||||||
|
|
@ -17,7 +17,7 @@ def get_swagger_ui_html(*, openapi_url: str, title: str) -> HTMLResponse:
|
||||||
<body>
|
<body>
|
||||||
<div id="swagger-ui">
|
<div id="swagger-ui">
|
||||||
</div>
|
</div>
|
||||||
<script src="//unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.js"></script>
|
||||||
<!-- `SwaggerUIBundle` is now available on the page -->
|
<!-- `SwaggerUIBundle` is now available on the page -->
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue