scense_drag/wwwroot/api/block_defs.dspy
2026-08-29 21:10:23 +08:00

9 lines
315 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
# block_defs.dspy — 获取块定义categories + blocks前端画布渲染的唯一事实源
# GET /drag/api/block_defs.dspy
try:
result = await get_block_defs_api()
return result
except Exception as e:
return {'success': False, 'message': 'block_defs.dspy: ' + str(e)}