Add accumulator retake workflow restore
This commit is contained in:
+11
@@ -99,6 +99,7 @@ try:
|
||||
accumulator_delete_payload,
|
||||
accumulator_list_payload,
|
||||
accumulator_move_payload,
|
||||
accumulator_retake_payload,
|
||||
accumulator_save_payload,
|
||||
profile_save_cached_payload,
|
||||
)
|
||||
@@ -155,6 +156,7 @@ except ImportError:
|
||||
accumulator_delete_payload,
|
||||
accumulator_list_payload,
|
||||
accumulator_move_payload,
|
||||
accumulator_retake_payload,
|
||||
accumulator_save_payload,
|
||||
profile_save_cached_payload,
|
||||
)
|
||||
@@ -206,6 +208,15 @@ if PromptServer is not None and web is not None:
|
||||
except Exception as exc:
|
||||
return web.json_response({"error": str(exc)}, status=400)
|
||||
|
||||
@PromptServer.instance.routes.post("/sxcp/accumulator/retake")
|
||||
async def sxcp_accumulator_retake(request):
|
||||
try:
|
||||
payload = await request.json()
|
||||
result = accumulator_retake_payload(payload)
|
||||
return web.json_response(result)
|
||||
except Exception as exc:
|
||||
return web.json_response({"error": str(exc)}, status=400)
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {}
|
||||
NODE_CLASS_MAPPINGS.update(BUILDER_NODE_CLASS_MAPPINGS)
|
||||
|
||||
Reference in New Issue
Block a user