You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in a modularized application with APIRouter-instances that set their own prefix, loading the playground does not work, as the prefix path is not prepended for the assets.
This seems like a simple fix: replacing line 1032 of server.py with
f"{namespace}/playground" if isinstance(app, FastAPI) else f"{app.prefix}{namespace}/playground",
works for me. I've prepared a corresponding pull request.
The text was updated successfully, but these errors were encountered:
Hi,
in a modularized application with APIRouter-instances that set their own prefix, loading the playground does not work, as the prefix path is not prepended for the assets.
This seems like a simple fix: replacing line 1032 of server.py with
f"{namespace}/playground" if isinstance(app, FastAPI) else f"{app.prefix}{namespace}/playground",
works for me. I've prepared a corresponding pull request.
The text was updated successfully, but these errors were encountered: