mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-13 15:02:37 +08:00
Merge 09fc080ed1 into ec454c771b
This commit is contained in:
commit
997d9af7c4
@ -411,10 +411,8 @@ class PromptServer():
|
|||||||
|
|
||||||
@routes.get("/object_info")
|
@routes.get("/object_info")
|
||||||
async def get_object_info(request):
|
async def get_object_info(request):
|
||||||
out = {}
|
node_info_dict = {node_name: node_info(node_name) for node_name in nodes.NODE_CLASS_MAPPINGS}
|
||||||
for x in nodes.NODE_CLASS_MAPPINGS:
|
return web.json_response(node_info_dict)
|
||||||
out[x] = node_info(x)
|
|
||||||
return web.json_response(out)
|
|
||||||
|
|
||||||
@routes.get("/object_info/{node_class}")
|
@routes.get("/object_info/{node_class}")
|
||||||
async def get_object_info_node(request):
|
async def get_object_info_node(request):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user