Skip to content

Instantly share code, notes, and snippets.

Created Jun 30, 2013
What would you like to do?
5 Code Signals
app.get('/api/friends', function(req,res,next){
Friends.find({user_id: }).exec(function (err, friend_list) {
if (err) {
return next(err);
if (friend_list) {
} else {
return next(new NotFound('Could not find any such Friend'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment