diff --git a/app/custom_node_manager.py b/app/custom_node_manager.py index 32f15aa9..277f8954 100644 --- a/app/custom_node_manager.py +++ b/app/custom_node_manager.py @@ -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)]) \ No newline at end of file + webapp.add_routes([web.static('/api/workflow_templates/' + module_name, workflows_dir)])