UNPKG

sleek.js

Version:

Sleek.js is an MVC wrapper Framework implemented from Node.JS, built-in with base dependency on handlebars.js, express.js. Sleek.js architecture follows common format of MVC which makes it easy to handle and build better web apps with pluggable modules &

20 lines (15 loc) 421 B
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ //write function here var userModel = { list: function(callback){ var collection =mongodb.collection('store_logs'); // Locate all the entries using find collection.find().toArray(function(err, results) { callback(results); }); } }; module.exports = userModel;