12 lines
435 B
Plaintext
12 lines
435 B
Plaintext
# -*- coding: utf-8 -*-
|
||
# graph_get.dspy — 获取单个画布(blocks / connections / content 往返一致)
|
||
# GET /drag/api/graph_get.dspy?id=xxx
|
||
try:
|
||
gid = params_kw.get('id')
|
||
if not gid:
|
||
return {'success': False, 'message': 'graph_get.dspy: missing id'}
|
||
result = await get_drag_graph({'id': gid})
|
||
return result
|
||
except Exception as e:
|
||
return {'success': False, 'message': 'graph_get.dspy: ' + str(e)}
|