修复节点列表导入功能
This commit is contained in:
parent
44e145a8bf
commit
1d00939152
@ -9,7 +9,7 @@ from jingrow.utils.jingrow_api import get_record_id, create_record
|
|||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
||||||
@router.post("/node-definitions/export")
|
@router.post("/jingrow/node-definitions/export")
|
||||||
async def export_node_definition(payload: Dict[str, Any]):
|
async def export_node_definition(payload: Dict[str, Any]):
|
||||||
"""
|
"""
|
||||||
导出节点定义(metadata + schema)为 JSON 文件:backend/nodes/{type}/{type}.json
|
导出节点定义(metadata + schema)为 JSON 文件:backend/nodes/{type}/{type}.json
|
||||||
@ -33,7 +33,7 @@ async def export_node_definition(payload: Dict[str, Any]):
|
|||||||
raise HTTPException(status_code=400, detail=str(e))
|
raise HTTPException(status_code=400, detail=str(e))
|
||||||
|
|
||||||
|
|
||||||
@router.post("/node-definitions/import-local")
|
@router.post("/jingrow/node-definitions/import-local")
|
||||||
async def import_local_node_definitions():
|
async def import_local_node_definitions():
|
||||||
"""
|
"""
|
||||||
扫描本地节点定义目录,按 metadata 去重后导入到 Local Ai Node。
|
扫描本地节点定义目录,按 metadata 去重后导入到 Local Ai Node。
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user