Skip to content

Instantly share code, notes, and snippets.

Created Jun 30, 2013
What would you like to do?
5 Code Signals
app.put('/api/friends/:_id', function (req, res){
return Friends.findById(req.params._id, function (err, friend) { =;
return (err) {
if (!err) {
console.log("updated friend");
} else {
return res.send(friend);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment