26 lines
642 B
Plaintext
26 lines
642 B
Plaintext
curl localhost:2019/load \
|
|
-H "Content-Type: application/json" \
|
|
-d @- << EOF
|
|
{
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"hello": {
|
|
"listen": [":2015"],
|
|
"routes": [
|
|
{
|
|
"handle": [{
|
|
"handler": "static_response",
|
|
"body": "Hello, world!"
|
|
}]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
EOF
|
|
|
|
|