|
53 | 53 | from core.meet_and_greet_service import MeetAndGreetConfig, MeetAndGreetService |
54 | 54 | from core.public_hive_quotas import reserve_public_hive_write_quota |
55 | 55 | from core.public_landing_page import render_public_landing_page_html |
| 56 | +from core.public_status_page import render_public_status_page_html |
56 | 57 | from network.knowledge_models import KnowledgeAdvert, KnowledgeRefresh, KnowledgeReplicaAd, KnowledgeWithdraw |
57 | 58 | from network.signer import get_local_peer_id |
58 | 59 |
|
@@ -429,8 +430,12 @@ def resolve_static_route(path: str) -> tuple[int, str, bytes] | None: |
429 | 430 | clean_path = path.rstrip("/") or "/" |
430 | 431 | if clean_path == "/": |
431 | 432 | 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") |
434 | 439 | nullabook_surface_by_path = { |
435 | 440 | "/nullabook": "feed", |
436 | 441 | "/feed": "feed", |
|
0 commit comments