add routes

This commit is contained in:
RyanOnTheInside
2025-04-22 11:33:00 -04:00
parent 2e0b867eff
commit c822e5c517
+9
View File
@@ -114,6 +114,15 @@ for node_name in NODE_CLASS_MAPPINGS.keys():
# Assign the final display name to the mappings
NODE_DISPLAY_NAME_MAPPINGS[node_name] = display_name
# Import server routes
try:
from . import server
print("\033[92m" + "[ComfyUI_RealtimeNodes] API routes registered.")
except Exception as e:
print("\033[91m" + f"[ComfyUI_RealtimeNodes] Error registering API routes: {e}")
traceback.print_exc()
# --- Original Web Directory and Export ---
WEB_DIRECTORY = "./web/js" # Adjusted path if needed