Refactor and optimize code for improved readability and maintainability

This commit is contained in:
Will Miao
2025-01-31 16:32:37 +08:00
parent 86b9715ef4
commit 0e708e6583
8 changed files with 428 additions and 383 deletions

View File

@@ -1,3 +1,4 @@
from .lora_manager import LoraManager
from .nodes.lora_gateway import LoRAGateway
NODE_CLASS_MAPPINGS = {
@@ -10,4 +11,6 @@ NODE_DISPLAY_NAME_MAPPINGS = {
WEB_DIRECTORY = "./js"
# Register routes on import
LoraManager.add_routes()
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']