text: var Message = require('./MessageModel');
  
  module.exports = {
      get: function (req, res) {
          Message.find({}).populate('user', '-pwd').exec(function (err, result) {
              res.send(result);
          })
      },
      post: function (req, res) {
          console.log(req.body, req.user);
          
          req.body.user = req.user;
          
          var message = new Message(req.body);
  
          message.save();
  
          res.status(200);
      }
  }