From 6e020ca3b842ba2404500b6269809138d8dbd596 Mon Sep 17 00:00:00 2001 From: tanglup <160642431+tanglup@users.noreply.github.com> Date: Sun, 24 Nov 2024 10:33:11 +0800 Subject: [PATCH] Update __init__.py --- __init__.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/__init__.py b/__init__.py index 96fc161..56c48d7 100644 --- a/__init__.py +++ b/__init__.py @@ -1,13 +1,16 @@ -from .canvas_node import CanvasView +from .canvas_node import CanvasNode + +# 设置路由 +CanvasNode.setup_routes() NODE_CLASS_MAPPINGS = { - "CanvasView": CanvasView + "CanvasNode": CanvasNode } NODE_DISPLAY_NAME_MAPPINGS = { - "CanvasView": "Canvas View" + "CanvasNode": "Canvas Node" } WEB_DIRECTORY = "./js" -__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] \ No newline at end of file +__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]