controller.js
function(req, res, next) {
    return function(modelOrCollection) {
      this.prepareResponse(modelOrCollection, req, res, next);
    }.bind(this);
  }
function(req, res, next) {
    return function(modelOrCollection) {
      this.prepareResponse(modelOrCollection, req, res, next);
    }.bind(this);
  }
function ( req , res , next ) { return function ( modelOrCollection ) { this . prepareResponse ( modelOrCollection , req , res , next ) ; } . bind ( this ) ; }
Convenience middleware to render a Model or Collection

DEPRECATED 2015-06-08

@return {Function} A middleware handler
Convenience middleware to render a Model or Collection