RESTfulAPI::answer
Output the API response to client then exit.
Signature
public function answer([string
$json = NULL,
[boolean
$corsPreflight = false]] )
Parameters
$json
— string- Response body
$corsPreflight
— boolean- Set to true if this is a XHR preflight request answer. CORS shoud be enabled.