Latest bits

This commit is contained in:
Dobie Wollert
2015-06-29 00:45:40 -04:00
parent b80f326ec2
commit 0d5ebb3f43
12 changed files with 241 additions and 29 deletions

View File

@ -14,13 +14,11 @@ module.exports = function(config) {
return {
send: function(req, res) {
console.log(req);
var userId = req.body.user;
if (!userId) {
return res.json(404, null);
}
console.log("Sending message");
User.findById(userId, function(err, user) {
if (err) return res.json(500, err);