mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
publish: 5.8.5
This commit is contained in:
parent
53ddcf90ac
commit
04e8bdb02a
3 changed files with 5 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
[tool.poetry]
|
||||
name = "royalnet"
|
||||
version = "5.8.4"
|
||||
version = "5.8.5"
|
||||
description = "A multipurpose bot and web framework"
|
||||
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
||||
license = "AGPL-3.0+"
|
||||
|
|
|
@ -37,6 +37,8 @@ class DocsStar(PageStar):
|
|||
}
|
||||
})
|
||||
|
||||
escaped_spec = spec.replace(r"'", r"\'")
|
||||
|
||||
return HTMLResponse(
|
||||
f"""
|
||||
<html lang="en">
|
||||
|
@ -50,7 +52,7 @@ class DocsStar(PageStar):
|
|||
<div id="docs"/>
|
||||
<script>
|
||||
const ui = SwaggerUIBundle({{
|
||||
spec: JSON.parse('{spec}'),
|
||||
spec: JSON.parse('{escaped_spec}'),
|
||||
dom_id: '#docs',
|
||||
presets: [
|
||||
SwaggerUIBundle.presets.apis,
|
||||
|
|
|
@ -1 +1 @@
|
|||
semantic = "5.8.4"
|
||||
semantic = "5.8.5"
|
||||
|
|
Loading…
Reference in a new issue