Register /embed shell routes for standalone OKX deploy.

Login redirected to /embed after hub removal left the route unregistered.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-14 17:55:28 +08:00
parent 09265b608d
commit 82ba8d19a6
+5
View File
@@ -7223,6 +7223,11 @@ from lib.hedge_plan.hedge_plan_register import install_hedge_plan
install_hedge_plan(app, _REPO_ROOT, app_module=sys.modules[__name__])
# 独立部署无 hub_bridge:须自行注册 /embed 壳,否则登录后跳转 /embed 会 404
from lib.instance.instance_embed_lib import register_embed_routes
register_embed_routes(app, login_required, render_main_page)
_purge_key_monitors_if_full_margin()