Below is the method from index.js
function costOfItemHandler(agent) {
const itemName = agent.parameters.foodItem;
const url = "https://fast-beach-13460.herokuapp.com/Eatery";
return axios.get(url)
.then((result) => {
console.log('result is '+ result);
});
In the log it is coming textPayload: "result is [object Object]". Where as when I am browsing the url it is giving proper response.