Created
March 28, 2012 17:45
-
-
Save deepaksinghvi/2228645 to your computer and use it in GitHub Desktop.
User List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// User list | |
app.get('/userlist', function(req, res) { | |
TestUser.find({}, function(err, user) { | |
user = user.map(function(u) { | |
return { username: u.username, password: d.password }; | |
}); | |
res.render('user/index.jade', { | |
locals: { d: user } | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment