const express = require('express');
const mongoose = require('mongoose');

const router = express.Router();

router.get('/', (req, res, next) => {
  const Report = mongoose.model('Report');
  Report.find({}, (err, docs) => {
    res.json(docs);
  });
});

module.exports = router;

@@ -249,16 +249,312 @@
 );%0A%7D);%0A%0A
+router.post('/', (req, res, next) =%3E %7B%0A  const Report = mongoose.model('Report');%0A%0A  let newReport = new Report();%0A  newReport.date = req.body.date %7C%7C new Date();%0A  newReport.title = req.body.title;%0A  newReport.description = req.body.description;%0A  newReport.save();%0A%0A  res.json(newReport);%0A%7D);%0A%0A
 module.e

Add POST method for /reports (without any auth checks)