Fix formatting.

This commit is contained in:
comfyanonymous 2024-12-28 05:33:17 -05:00
parent 96697c4bc5
commit e1dec3c792

View File

@ -26,9 +26,9 @@ class CustomNodeManager:
workflow_name = os.path.splitext(os.path.basename(file))[0]
workflow_templates_dict.setdefault(custom_nodes_name, []).append(workflow_name)
return web.json_response(workflow_templates_dict)
# Serve workflow templates from custom nodes.
for module_name, module_dir in loadedModules:
workflows_dir = os.path.join(module_dir, 'example_workflows')
if os.path.exists(workflows_dir):
webapp.add_routes([web.static('/api/workflow_templates/' + module_name, workflows_dir)])
webapp.add_routes([web.static('/api/workflow_templates/' + module_name, workflows_dir)])