lib/responses.js
function list(options) {
  return function (req, res) {
    let list,
      listOptions = _.assign({
        prefix: req.uri,
        values: false
      }, options);

    list = db.list(listOptions);

    res.set('Content-Type', 'application/json');
    list.pipe(res);
  };
}
function list(options) {
  return function (req, res) {
    let list,
      listOptions = _.assign({
        prefix: req.uri,
        values: false
      }, options);

    list = db.list(listOptions);

    res.set('Content-Type', 'application/json');
    list.pipe(res);
  };
}
function list ( options ) { return function ( req , res ) { let list , listOptions = _ . assign ( { prefix : req . uri , values : false } , options ) ; list = db . list ( listOptions ) ; res . set ( 'Content-Type' , 'application/json' ) ; list . pipe ( res ) ; } ; }
List all things in the db
@param {object} [options]
@param {string} [options.prefix]
@param {boolean} [options.values]
@param {function|array} [options.transforms]
@returns {function}
List all things in the db