UNPKG

aolists-webtop

Version:

Web interface for aoLists

21 lines (19 loc) 622 B
/** * * dataset_list.js * aolists * * 2014-06-17 - Changes to support aolLists client (by Jose E. Gonzalez jr) */ var aofn = module.parent.parent.exports.aofn; exports.send = function (req, res, credentials, values) { aofn.response.openDataset(req, values, ['id', 'Name']); aofn.serverCall(credentials, '/allmetadata', function (response) { if (response && Array.isArray(response)) { response.forEach(function (value) { aofn.response.addDataset(req, [value._id, value._id]); }); } aofn.response.done(req); }); };