From 31de92a7efa2f9a6ff1db7f90ea7d47710517a2e Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Tue, 15 Apr 2025 17:36:38 +0800 Subject: [PATCH] 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 --- MANIFEST.in | 8 +++++++- comfyui_manager/legacy/manager_server.py | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 8af7bc57..ef0db890 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,4 +4,10 @@ include comfyui_manager/glob/* include LICENSE.txt include README.md include requirements.txt -include pyproject.toml \ No newline at end of file +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 \ No newline at end of file diff --git a/comfyui_manager/legacy/manager_server.py b/comfyui_manager/legacy/manager_server.py index 448a5150..aa0c9ddf 100644 --- a/comfyui_manager/legacy/manager_server.py +++ b/comfyui_manager/legacy/manager_server.py @@ -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")