Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
i5ting committed Jun 4, 2015
1 parent 18dd798 commit c3f6ef0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/query.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
exports.list = function (req, res, next) {
var user_id = req.session.current_user._id;
console.log(user_id);

console.log(req.method + ' /products => list, query: ' + JSON.stringify(req.query));

Product.query({user_id: user_id},function(err, products){
console.log(products);
res.render('products/index', {
products : products
})
});
};

0 comments on commit c3f6ef0

Please sign in to comment.