-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvirtual-hosts.json
More file actions
59 lines (59 loc) · 1.29 KB
/
Copy pathvirtual-hosts.json
File metadata and controls
59 lines (59 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[
{
"id": "e6ecaeaf7330ec25",
"type": "comment",
"z": "4730a3973976294e",
"name": "virtual Hosts (at /virtual-host)",
"info": "",
"x": 1460,
"y": 100,
"wires": []
},
{
"id": "73ade7c0b5fc7f80",
"type": "http in",
"z": "4730a3973976294e",
"name": "",
"url": "virtual-host",
"method": "get",
"upload": true,
"swaggerDoc": "",
"x": 1420,
"y": 160,
"wires": [
[
"d979be08dbbaefc9"
]
]
},
{
"id": "d979be08dbbaefc9",
"type": "function",
"z": "4730a3973976294e",
"name": "process Request",
"func": "let HostHeader = msg.req.headers['host']\nmsg.payload = HostHeader\n\nreturn msg",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1630,
"y": 160,
"wires": [
[
"701b0378d7fa6771"
]
]
},
{
"id": "701b0378d7fa6771",
"type": "http response",
"z": "4730a3973976294e",
"name": "",
"statusCode": "200",
"headers": {},
"x": 1820,
"y": 160,
"wires": []
}
]