text: var express = require('express');
  var router = express.Router();
  
  const authors = [
    {
      id: 'cory-house',
      firstName: 'Cory',
      lastName: 'House'
    },
    {
      id: 'scott-allen',
      firstName: 'Scott',
      lastName: 'Allen'
    },
    {
      id: 'dan-wahlin',
      firstName: 'Dan',
      lastName: 'Wahlin'
    }
  ];
  
  //This would be performed on the server in a real app. Just stubbing in.
  const generateId = (author) => {
    return author.firstName.toLowerCase() + '-' + author.lastName.toLowerCase();
  };
  
  // CREATES A NEW USER
  /*router.post('/', function (req, res) {
      User.create({
              name : req.body.name,
              email : req.body.email,
              password : req.body.password
          }, 
          function (err, user) {
              if (err) return res.status(500).send("There was a problem adding the information to the database.");
              res.status(200).send(user);
          });
  });*/
  
  // RETURNS ALL THE USERS IN THE DATABASE
  router.get('/', function (req, res) {
      res.status(200).send(authors);
  });
  
  // GETS A SINGLE USER FROM THE DATABASE
  /*router.get('/:id', function (req, res) {
      User.findById(req.params.id, function (err, user) {
          if (err) return res.status(500).send("There was a problem finding the user.");
          if (!user) return res.status(404).send("No user found.");
          res.status(200).send(user);
      });
  });
  
  // DELETES A USER FROM THE DATABASE
  router.delete('/:id', function (req, res) {
      User.findByIdAndRemove(req.params.id, function (err, user) {
          if (err) return res.status(500).send("There was a problem deleting the user.");
          res.status(200).send("User: "+ user.name +" was deleted.");
      });
  });
  
  // UPDATES A SINGLE USER IN THE DATABASE
  router.put('/:id', function (req, res) {
      User.findByIdAndUpdate(req.params.id, req.body, {new: true}, function (err, user) {
          if (err) return res.status(500).send("There was a problem updating the user.");
          res.status(200).send(user);
      });
  });*/
  
  
  module.exports = router;