custom swagger docs

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-11-14 10:11:20 -05:00
parent 4033f2b63f
commit 94b71003e0
5 changed files with 974 additions and 11 deletions
+4 -8
View File
@@ -51,13 +51,10 @@ fastapi_args = {
"version": f'0.0.{git_commit}',
"title": "SD.Next",
"description": "SD.Next",
"docs_url": "/docs" if cmd_opts.docs else None,
"redoc_url": "/redocs" if cmd_opts.docs else None,
"swagger_ui_parameters": {
"displayOperationId": True,
"showCommonExtensions": True,
"deepLinking": False,
}
"docs_url": None,
"redoc_url": None,
# "docs_url": "/docs" if cmd_opts.docs else None, # custom handler in api.py
# "redoc_url": "/redocs" if cmd_opts.docs else None,
}
import modules.sd_hijack
@@ -277,7 +274,6 @@ def start_ui():
max_threads=64,
show_api=False,
quiet=True,
# favicon_path='html/logo.ico',
favicon_path='html/favicon.svg',
allowed_paths=allowed_paths,
app_kwargs=fastapi_args,