mirror of
https://github.com/gorules/zen.git
synced 2026-10-03 16:02:27 +00:00
34 lines
889 B
JSON
34 lines
889 B
JSON
{
|
|
"contentType": "application/vnd.gorules.decision",
|
|
"nodes": [
|
|
{
|
|
"type": "inputNode",
|
|
"id": "2d560c7d-3528-43ed-88d8-28f4d8ef17be",
|
|
"name": "request",
|
|
"position": {
|
|
"x": 295,
|
|
"y": 175
|
|
}
|
|
},
|
|
{
|
|
"type": "functionNode",
|
|
"content": {
|
|
"source": "import zen from 'zen';\nimport http from 'http';\n\n/** @type {Handler} **/\nexport const handler = async (input) => {\n await console.sleep(50);\n\n return { hello: 'world' };\n};\n"
|
|
},
|
|
"id": "66cb12f4-4cdd-4422-850b-4534f959407d",
|
|
"name": "function1",
|
|
"position": {
|
|
"x": 600,
|
|
"y": 175
|
|
}
|
|
}
|
|
],
|
|
"edges": [
|
|
{
|
|
"id": "b65ca09a-a010-4fc2-bca1-f7cf21a0ddc3",
|
|
"sourceId": "2d560c7d-3528-43ed-88d8-28f4d8ef17be",
|
|
"type": "edge",
|
|
"targetId": "66cb12f4-4cdd-4422-850b-4534f959407d"
|
|
}
|
|
]
|
|
} |