fix(hub): remove trade UI stubs, public ping, multipart dep

This commit is contained in:
dekun
2026-05-22 12:07:26 +08:00
parent 7d263c349f
commit d075471573
3 changed files with 29 additions and 1 deletions
+3
View File
@@ -39,6 +39,7 @@ HUB_BRIDGE_TOKEN = (os.getenv("HUB_BRIDGE_TOKEN") or os.getenv("CONTROL_TOKEN")
_trust_raw = (os.getenv("HUB_TRUST_LAN", "true") or "").strip().lower()
HUB_TRUST_LAN = _trust_raw not in ("0", "false", "no", "off")
DIR = Path(__file__).resolve().parent
HUB_BUILD = "20260521-no-trade-ui"
def _is_local(host: str | None) -> bool:
@@ -431,8 +432,10 @@ def api_ping():
return {
"ok": True,
"service": "manual-trading-hub",
"build": HUB_BUILD,
"trade_ui": False,
"features": ["monitor", "settings", "auth"],
"password_required": password_required(),
}