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

10 lines
342 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 -*-
# graph_publish.dspy — 发布画布到 script_enginescript_type=0
# POST /drag/api/graph_publish.dspy body: {id, script_name?}
try:
ns = dict(params_kw)
result = await graph_publish(ns)
return result
except Exception as e:
return {'success': False, 'message': 'graph_publish.dspy: ' + str(e)}