mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
complete refactor javascript to typescript and reorg frontend files and folders
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+3
-5
@@ -71,12 +71,10 @@ def create_docs(app: FastAPI):
|
||||
res = get_swagger_ui_html(
|
||||
title=f'{app.title}: Swagger UI',
|
||||
openapi_url=app.openapi_url,
|
||||
swagger_favicon_url='/file=html/favicon.svg',
|
||||
swagger_css_url='/file=html/swagger.css',
|
||||
swagger_favicon_url='/file=ui/assets/favicon.svg',
|
||||
swagger_css_url='/file=ui/css/swagger.css',
|
||||
swagger_ui_parameters=swagger_ui_parameters,
|
||||
# swagger_extra_css_url='file=html/swagger.css',
|
||||
)
|
||||
# res = inject_css(html.content, 'html/swagger.css')
|
||||
return res
|
||||
|
||||
|
||||
@@ -86,6 +84,6 @@ def create_redocs(app: FastAPI):
|
||||
res = get_redoc_html(
|
||||
title=f'{app.title}: ReDoc',
|
||||
openapi_url=app.openapi_url,
|
||||
redoc_favicon_url='/file=html/favicon.svg',
|
||||
redoc_favicon_url='/file=ui/assets/favicon.svg',
|
||||
)
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user