Add is_legacy_manager_ui route from the legacy package as well (#1748)

* add `is_legacy_manager_ui` route to `legacy` package  as well

* add static
This commit is contained in:
Christian Byrne 2025-04-15 17:36:38 +08:00 committed by bymyself
parent 3ae4aecd84
commit 31de92a7ef
2 changed files with 16 additions and 1 deletions

View File

@ -4,4 +4,10 @@ include comfyui_manager/glob/*
include LICENSE.txt
include README.md
include requirements.txt
include pyproject.toml
include pyproject.toml
include custom-node-list.json
include extension-node-list.json
include extras.json
include github-stats.json
include model-list.json
include alter-list.json

View File

@ -992,6 +992,15 @@ def populate_markdown(x):
x['title'] = manager_util.sanitize_tag(x['title'])
@routes.get("/v2/manager/is_legacy_manager_ui")
async def is_legacy_manager_ui(request):
return web.json_response(
{"is_legacy_manager_ui": args.enable_manager_legacy_ui},
content_type="application/json",
status=200,
)
# freeze imported version
startup_time_installed_node_packs = core.get_installed_node_packs()
@routes.get("/v2/customnode/installed")