const Report = require('../models/reports.js');

module.exports = app => {
  app.route('/reports')
  .get((req, res) => {
    Report.find({}, (err, reports) => {
      if(err) {
        res.status(412).json({msg: error.message});
      } else {
        res.json(reports);
      }
    });
  })
  .post((req, res) => {
    new Report({title: req.body.title}).save((err, report) => {
      if(err) {
        res.status(412).json({msg: err.message});
      } else {
        res.json(report);
      }
    });
  });
};

@@ -330,29 +330,265 @@
 rt(%7B
-title: req.body.title
+%0A      product: req.body.product,%0A      company: req.body.company,%0A      category: req.body.category,%0A      videoTitle: req.body.videoTitle,%0A      videoLink: req.body.videoLink,%0A      videoReleased: req.body.videoReleased,%0A      rating: req.body.rating%0A    
 %7D).s

Update route to match model