Skip to content

Instantly share code, notes, and snippets.

@sardar7110
Forked from sauthieg/hello-world.json
Created January 4, 2020 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sardar7110/1eac54cdcb1c39c996f1718ab8071981 to your computer and use it in GitHub Desktop.
Save sardar7110/1eac54cdcb1c39c996f1718ab8071981 to your computer and use it in GitHub Desktop.
Returns "Hello World" when `http://localhost:8080/hello` is invoked
{
"heap": {
"objects": [
{
"name": "Hello",
"type": "StaticResponseHandler",
"config": {
"status": 200,
"entity": "<html><body><h1>Hello World</h1></body></html>"
}
}
]
},
"condition": "${matches(exchange.request.uri.path, '^/hello')}",
"handler": "Hello"
}
@sardar7110
Copy link
Author

[<]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment