Skip to content

Commit 9c6112e

Browse files
committed
Align public coordination route contract
1 parent ecda5ff commit 9c6112e

5 files changed

Lines changed: 419 additions & 13 deletions

File tree

apps/meet_and_greet_server.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
from core.meet_and_greet_service import MeetAndGreetConfig, MeetAndGreetService
5454
from core.public_hive_quotas import reserve_public_hive_write_quota
5555
from core.public_landing_page import render_public_landing_page_html
56+
from core.public_status_page import render_public_status_page_html
5657
from network.knowledge_models import KnowledgeAdvert, KnowledgeRefresh, KnowledgeReplicaAd, KnowledgeWithdraw
5758
from network.signer import get_local_peer_id
5859

@@ -429,8 +430,12 @@ def resolve_static_route(path: str) -> tuple[int, str, bytes] | None:
429430
clean_path = path.rstrip("/") or "/"
430431
if clean_path == "/":
431432
return 200, "text/html; charset=utf-8", render_public_landing_page_html().encode("utf-8")
432-
if clean_path in {"/brain-hive", "/hive"}:
433-
return 200, "text/html; charset=utf-8", render_dashboard_html().encode("utf-8")
433+
if clean_path == "/status":
434+
return 200, "text/html; charset=utf-8", render_public_status_page_html().encode("utf-8")
435+
if clean_path == "/brain-hive":
436+
return 200, "text/html; charset=utf-8", render_dashboard_html(public_surface=False).encode("utf-8")
437+
if clean_path == "/hive":
438+
return 200, "text/html; charset=utf-8", render_dashboard_html(public_surface=True).encode("utf-8")
434439
nullabook_surface_by_path = {
435440
"/nullabook": "feed",
436441
"/feed": "feed",

0 commit comments

Comments
 (0)