src/server/controllers.js
function serve(req, res) {
  var responseIsArray = Array.isArray(res.entityResponse);
  util.invariant(responseIsArray, 'Response values are required.');

  res.json({ values: res.entityResponse });
}
function serve(req, res) {
  var responseIsArray = Array.isArray(res.entityResponse);
  util.invariant(responseIsArray, 'Response values are required.');

  res.json({ values: res.entityResponse });
}
function serve ( req , res ) { var responseIsArray = Array . isArray ( res . entityResponse ) ; util . invariant ( responseIsArray , 'Response values are required.' ) ; res . json ( { values : res . entityResponse } ) ; }
Serves the value in req.entityResponse as a JSON object.
Serves the value in req . entityResponse as a JSON object .