You can route responses inline with ColdBox via the addRoute()
function globally in your main routes.cfm
template or within any Module as well. This will allow you to build simple response functions or even mock out or stub a RESTFul service very easily. The paremeters you will use for response routing will be: response, statusCode and statusText
.
The response
argument can be a string or a closure or UDF pointer. T...