Skip to content

Instantly share code, notes, and snippets.

@LayneSmith
Created February 1, 2016 16:56
Show Gist options
  • Select an option

  • Save LayneSmith/ead5534a23dc13cdbe68 to your computer and use it in GitHub Desktop.

Select an option

Save LayneSmith/ead5534a23dc13cdbe68 to your computer and use it in GitHub Desktop.
//DISPLAY SHARED PAGE WITH ALL RESULTS
//FIND SPECIIFIC ENTRIES IN TABLES
appRouter.route('/know-me-2016/display/:first_list_id/:second_list_id?').get(function(req,res){
req.models.know_me_2016
.find({ or:
[{list_id: req.params.first_list_id}, {list_id: req.params.second_list_id}]
}) // Select list
.run(function(err, results){
if(err){
res.send(err); }
res.send(results);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment