Skip to content

Instantly share code, notes, and snippets.

@shinecita
Last active October 4, 2017 14:29
Show Gist options
  • Save shinecita/4588878 to your computer and use it in GitHub Desktop.
Save shinecita/4588878 to your computer and use it in GitHub Desktop.
// Gets user avatar url
router.get('/:userId/avatar', function(req, res) {
User.findOne({}, function(err, user) {
res.redirect(user.pictureUrl);
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment