Skip to content

Instantly share code, notes, and snippets.

@DTrejo
Created March 30, 2011 03:07
Show Gist options
  • Save DTrejo/893787 to your computer and use it in GitHub Desktop.
Save DTrejo/893787 to your computer and use it in GitHub Desktop.
// Routes
app.get('/', userIsAuthenticated, function(req, res){
Doc.find( { loc : { $near : [50.62, -20.32], $maxDistance : 50 } } , function (err, docs) {
res.render('index_authenticated.jade', {
locals: {
title: 'Welcome back to Gociety',
status: 'logged in',
currentUser: req.currentUser,
user: req.currentUser,
feed: docs
}
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment