fix(nodes): fix broken docs routes

This commit is contained in:
psychedelicious 2023-05-10 16:18:06 +10:00 committed by Kent Keirsey
parent f8e90ba3f0
commit ee24ad7b13

View File

@ -126,8 +126,6 @@ app.openapi = custom_openapi
# Override API doc favicons
app.mount("/static", StaticFiles(directory="static/dream_web"), name="static")
app.mount("/", StaticFiles(directory="invokeai/frontend/web/dist", html=True), name="ui")
@app.get("/docs", include_in_schema=False)
def overridden_swagger():
return get_swagger_ui_html(
@ -145,6 +143,8 @@ def overridden_redoc():
redoc_favicon_url="/static/favicon.ico",
)
# Must mount *after* the other routes else it borks em
app.mount("/", StaticFiles(directory="invokeai/frontend/web/dist", html=True), name="ui")
def invoke_api():
# Start our own event loop for eventing usage