diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-25 16:31:52 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-25 16:31:52 +0200 |
| commit | 8bb94a39609f57be2c486f579849eebb04606808 (patch) | |
| tree | 46d5553f514619d8f1f33af6eb32a6de314a03d0 /packages/meshbay-hub/src/meshbay_hub/app.py | |
| parent | 10c58792c7591accdb84c92201f77843ec39ee7b (diff) | |
| download | meshbay-8bb94a39609f57be2c486f579849eebb04606808.tar.gz | |
feat(hub): friendlier welcome page, link previews, robots.txt and favicon
Welcome page: privacy said once, a three-step "how it works", a
documentation box, download (green) and legal links under the sign-in
form, on a dark gradient backdrop covering the whole page.
Link previews: Open Graph tags in the app shell, rendered for
identity.id, with the square icon as image.
robots.txt, favicon and touch icon served at the origin root.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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): |