I have a Server code, and using the REST service I am invoking it. I am then having the response back into a javascript, and using the response. Looking at the docs, I cannot see how to do this.
I am using this in the server code:
response.success('true');
In the response of the rest in the app, I am using:
console.log(data);
or
console.log(response);
but seem to came back empty. I am mapping requestBody.
What is the correct syntax ?