diff options
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/app.py')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/app.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/app.py b/packages/meshbay-hub/src/meshbay_hub/app.py index b1d9626..7ccf598 100644 --- a/packages/meshbay-hub/src/meshbay_hub/app.py +++ b/packages/meshbay-hub/src/meshbay_hub/app.py @@ -37,6 +37,7 @@ from meshbay_hub.api.signaling import router as signaling_router from meshbay_hub.api.users import router as users_router from meshbay_hub.api.users import set_config as users_set_config from meshbay_hub.api.webapp import ASSET_V, CSP, STATIC_DIR +from meshbay_hub.api.webapp import configure as webapp_configure from meshbay_hub.api.webapp import router as webapp_router from meshbay_hub.auth import generate_hub_keypair, load_hub_keypair from meshbay_hub.config import HubConfig @@ -97,6 +98,9 @@ def create_app(cfg: HubConfig | None = None) -> FastAPI: from meshbay_hub.config import load_config if cfg is None: cfg = load_config() + # Here rather than in the lifespan: the shell is served by routes that exist + # as soon as the app does, and a test client need not start it to read them. + webapp_configure(cfg.identity.id) @asynccontextmanager async def lifespan(app: FastAPI): |