Lieber @Micha danke für deine Antwort. Sehr gerne hier mein Flow inkl. http-server Konfig.
[
{
"id": "511d4648bb795561",
"type": "tab",
"label": "http",
"disabled": false,
"info": "",
"env": []
},
{
"id": "f23477f302404de1",
"type": "http-in",
"z": "511d4648bb795561",
"name": "",
"server": "9a70b3a31567f6b7",
"url": "/number",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 135,
"y": 70,
"wires": [
[
{
"id": "fc81b7f8277a57d5",
"port": 0
}
]
]
},
{
"id": "cff75260981c40cf",
"type": "http-response",
"z": "511d4648bb795561",
"name": "",
"server": "9a70b3a31567f6b7",
"statusCode": "",
"headers": {},
"x": 500,
"y": 50,
"wires": []
},
{
"id": "3f8084a89f926777",
"type": "debug",
"z": "511d4648bb795561",
"name": "",
"active": true,
"console": "debtab",
"complete": "payload",
"loglevel": "info",
"x": 520,
"y": 110,
"wires": []
},
{
"id": "fc81b7f8277a57d5",
"type": "template",
"z": "511d4648bb795561",
"name": "",
"field": "payload",
"format": "html",
"syntax": "mustache",
"template": "<html>\n <head></head>\n <body>\n <h1>Hello World!</h1>\n </body>\n</html>",
"output": "json",
"x": 315,
"y": 70,
"wires": [
[
{
"id": "cff75260981c40cf",
"port": 0
},
{
"id": "3f8084a89f926777",
"port": 0
}
]
]
},
{
"id": "9a70b3a31567f6b7",
"type": "http-server",
"listenaddress": "localhost",
"port": "1880",
"usetls": false
}
]