Skip to content

Commit ee24ad7

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(nodes): fix broken docs routes
1 parent f8e90ba commit ee24ad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/app/api_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ def custom_openapi():
126126
# Override API doc favicons
127127
app.mount("/static", StaticFiles(directory="static/dream_web"), name="static")
128128

129-
app.mount("/", StaticFiles(directory="invokeai/frontend/web/dist", html=True), name="ui")
130-
131129
@app.get("/docs", include_in_schema=False)
132130
def overridden_swagger():
133131
return get_swagger_ui_html(
@@ -145,6 +143,8 @@ def overridden_redoc():
145143
redoc_favicon_url="/static/favicon.ico",
146144
)
147145

146+
# Must mount *after* the other routes else it borks em
147+
app.mount("/", StaticFiles(directory="invokeai/frontend/web/dist", html=True), name="ui")
148148

149149
def invoke_api():
150150
# Start our own event loop for eventing usage

0 commit comments

Comments
 (0)