diff --git a/apps/jingrow/jingrow/core/api/agents.py b/apps/jingrow/jingrow/api/agents.py similarity index 100% rename from apps/jingrow/jingrow/core/api/agents.py rename to apps/jingrow/jingrow/api/agents.py diff --git a/apps/jingrow/jingrow/core/api/dev.py b/apps/jingrow/jingrow/api/dev.py similarity index 100% rename from apps/jingrow/jingrow/core/api/dev.py rename to apps/jingrow/jingrow/api/dev.py diff --git a/apps/jingrow/jingrow/core/api/embedding.py b/apps/jingrow/jingrow/api/embedding.py similarity index 100% rename from apps/jingrow/jingrow/core/api/embedding.py rename to apps/jingrow/jingrow/api/embedding.py diff --git a/apps/jingrow/jingrow/core/api/local_app_installer.py b/apps/jingrow/jingrow/api/local_app_installer.py similarity index 100% rename from apps/jingrow/jingrow/core/api/local_app_installer.py rename to apps/jingrow/jingrow/api/local_app_installer.py diff --git a/apps/jingrow/jingrow/core/api/local_jobs.py b/apps/jingrow/jingrow/api/local_jobs.py similarity index 100% rename from apps/jingrow/jingrow/core/api/local_jobs.py rename to apps/jingrow/jingrow/api/local_jobs.py diff --git a/apps/jingrow/jingrow/core/api/node_definitions.py b/apps/jingrow/jingrow/api/node_definitions.py similarity index 100% rename from apps/jingrow/jingrow/core/api/node_definitions.py rename to apps/jingrow/jingrow/api/node_definitions.py diff --git a/apps/jingrow/jingrow/core/api/nodes.py b/apps/jingrow/jingrow/api/nodes.py similarity index 100% rename from apps/jingrow/jingrow/core/api/nodes.py rename to apps/jingrow/jingrow/api/nodes.py diff --git a/apps/jingrow/jingrow/core/api/scheduled_jobs.py b/apps/jingrow/jingrow/api/scheduled_jobs.py similarity index 100% rename from apps/jingrow/jingrow/core/api/scheduled_jobs.py rename to apps/jingrow/jingrow/api/scheduled_jobs.py diff --git a/apps/jingrow/jingrow/core/api/scheduler.py b/apps/jingrow/jingrow/api/scheduler.py similarity index 100% rename from apps/jingrow/jingrow/core/api/scheduler.py rename to apps/jingrow/jingrow/api/scheduler.py diff --git a/apps/jingrow/jingrow/core/__init__.py b/apps/jingrow/jingrow/core/__init__.py deleted file mode 100644 index 8f1469c..0000000 --- a/apps/jingrow/jingrow/core/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright (c) 2025, JINGROW and contributors -# For license information, please see license.txt - -""" -Jingrow Local 核心功能 -与 SaaS 版完全一致的核心实现 -""" diff --git a/apps/jingrow/jingrow/core/api/__init__.py b/apps/jingrow/jingrow/core/api/__init__.py deleted file mode 100644 index 1102393..0000000 --- a/apps/jingrow/jingrow/core/api/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# Routes module diff --git a/apps/jingrow/jingrow/main.py b/apps/jingrow/jingrow/main.py index 58dc3b1..23c9f05 100644 --- a/apps/jingrow/jingrow/main.py +++ b/apps/jingrow/jingrow/main.py @@ -59,7 +59,7 @@ def create_app(): ) # 自动注册 Jingrow 框架的静态路由 - include_routers_from_package(app, "jingrow.core.api", prefix="/jingrow") + include_routers_from_package(app, "jingrow.api", prefix="/jingrow") # 手动注册动态路由(最后注册,避免冲突) app.include_router(router, prefix="/jingrow")