text: // *********************************************************************************
  // api-routes.js - this file offers a set of routes for displaying and saving data to the db
  // *********************************************************************************
  
  // Dependencies
  // =============================================================
  var db = require("../models");
  
  // Routes
  // =============================================================
  module.exports = function(app) {
    console.log("api-routes listening");
  
    app.post("/api/login", function(req, res) {
      console.log(req.body);
      db.User.findAll({
        where: req.body
      }).then(function(dbUser) {
        console.log(dbUser);
        res.json(dbUser);
        if (!dbUser)
        db.Volunteer.findOne({
          where: {id: dbUser[0].id}
        }).then(function(dbVol) {
          console.log(dbVol);
          res.json(IDBCursorWithValue);
      });
    });
  
    //THESE WILL HAVE TO BE WRITTEN FOR THE FUNCTIONS REQUIRED OF YOUR SPECIFIC PAGES.
    //NOTE: SOME OF THESE WILL HAVE TO BE CALLED AS SOON AS YOUR PAGE LOADS.
    //As such, you might want to bracket your page.js files in a document ready function.
    // Get all books
    //app.get("/api/all", function(req, res) {
    //Book.findAll({}).then(function(results) {
    //res.json(results);
    //});
    //});
    // Add a book
    //app.post("/api/new", function(req, res) {
    //console.log("Book Data:");
    //console.log(req.body);
    //Book.create({
    //title: req.body.title,
    //author: req.body.author,
    //genre: req.body.genre,
    //pages: req.body.pages
    //});
    //});
    // Delete a book
    //app.post("/api/delete", function(req, res) {
    //console.log("Book Data:");
    //console.log(req.body);
    //Book.destroy({
    //where: {
    //id: req.body.id
    //}
    //});
    //});
  };
  