[
{
"id": "d34068484ea2ded8",
"type": "tab",
"label": "Flow 3",
"disabled": false,
"info": "",
"env": []
},
{
"id": "e8af32c9f72d4719",
"type": "template",
"z": "d34068484ea2ded8",
"name": "page",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "<html>\n <head></head>\n <body>\n <h1>This is the serial number page</h1>\n </body>\n</html>",
"x": 510,
"y": 80,
"wires": [
[
"fc26c32d5cc36a81"
]
]
},
{
"id": "513d0c17666d63e2",
"type": "template",
"z": "d34068484ea2ded8",
"name": "page",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "<html>\n <head></head>\n <body>\n <h1>Hello</h1>\n </body>\n</html>",
"x": 510,
"y": 200,
"wires": [
[
"5320de026f91e753"
]
]
},
{
"id": "c189c8813e92c697",
"type": "change",
"z": "d34068484ea2ded8",
"name": "",
"rules": [
{
"t": "set",
"p": "payload.query",
"pt": "msg",
"to": "{}",
"tot": "json"
},
{
"t": "set",
"p": "payload.query.serial",
"pt": "msg",
"to": "req.params.method",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 320,
"y": 80,
"wires": [
[
"e8af32c9f72d4719"
]
]
},
{
"id": "ea637c6e844bb005",
"type": "http in",
"z": "d34068484ea2ded8",
"name": "Home",
"url": "/home/:method",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 110,
"y": 140,
"wires": [
[
"c189c8813e92c697",
"82625e7b5370882e"
]
]
},
{
"id": "82625e7b5370882e",
"type": "change",
"z": "d34068484ea2ded8",
"name": "",
"rules": [
{
"t": "set",
"p": "payload.query",
"pt": "msg",
"to": "{}",
"tot": "json"
},
{
"t": "set",
"p": "payload.query.hello",
"pt": "msg",
"to": "req.params.method",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 320,
"y": 200,
"wires": [
[
"513d0c17666d63e2"
]
]
},
{
"id": "fc26c32d5cc36a81",
"type": "http response",
"z": "d34068484ea2ded8",
"name": "",
"statusCode": "",
"headers": {},
"x": 670,
"y": 80,
"wires": []
},
{
"id": "5320de026f91e753",
"type": "http response",
"z": "d34068484ea2ded8",
"name": "",
"statusCode": "",
"headers": {},
"x": 670,
"y": 200,
"wires": []
}
]