src/router.js
function expressGetHandler(endpoint) {
  return function(req, res) {
    // We have to handle request parameters differently since they're not in the
    // request body.
    rpc.getMethod(endpoint.name)({request: req.params}, function(err, doc) {
      res.send(doc);
      res.end();
    });
  };
}
function expressGetHandler(endpoint) {
  return function(req, res) {
    // We have to handle request parameters differently since they're not in the
    // request body.
    rpc.getMethod(endpoint.name)({request: req.params}, function(err, doc) {
      res.send(doc);
      res.end();
    });
  };
}
function expressGetHandler ( endpoint ) { return function ( req , res ) { // We have to handle request parameters differently since they're not in the // request body. rpc . getMethod ( endpoint . name ) ( { request : req . params } , function ( err , doc ) { res . send ( doc ) ; res . end ( ) ; } ) ; } ; }
Returns a callback that will be sent to the controller function when a GET endpoint is requested.
Returns a callback that will be sent to the controller function when a GET endpoint is requested .