supplychain/wwwroot/api/suppliers_update.dspy

10 lines
316 B
Plaintext

import json
from ahserver.serverenv import ServerEnv
env = ServerEnv()
update_func = getattr(env, 'update_suppliers', None)
if update_func is None:
print(json.dumps({"status": "error", "message": "update_suppliers function not found"}))
else:
result = await update_func(request, params_kw)
print(result)