Open HaoXuAI opened 2 months ago
Is there a way to mount jupyvers APIs into another fastapi app? e.g, I have something like:
app = FastAPI()
And I started the server with gunicorn server:app..., is there a way to just mount all jupyverse in the app without starting it with the asphalt?
gunicorn server:app...
the current way I'm doing is:
# Create the app. app = App() jupyverse_app = App(app.api, "jupyverse") frontend_config = FrontendConfig() auth_config = _AuthConfig() auth = auth_factory(jupyverse_app, auth_config, frontend_config)
But feels like too hacking.
Problem
Is there a way to mount jupyvers APIs into another fastapi app? e.g, I have something like:
And I started the server with
gunicorn server:app...
, is there a way to just mount all jupyverse in the app without starting it with the asphalt?Proposed Solution
the current way I'm doing is:
But feels like too hacking.
Additional context