Created
September 25, 2014 08:45
-
-
Save sauthieg/17ebb198470e90e249be to your computer and use it in GitHub Desktop.
Returns "Hello World" when `http://localhost:8080/hello` is invoked
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{
"heap": {
"objects": [
{
"name": "Hello",
"type": "StaticResponseHandler",
"config": {
"status": 200,
"entity": "
Hello World
"}
}
]
},
"condition": "${matches(exchange.request.uri.path, '^/hello')}",
"handler": "Hello"
}