text: // *********************************************************************************
  // api-routes.js - this file offers a set of routes for displaying and saving data to the db
  // *********************************************************************************
  
  // Dependencies
  // =============================================================
  var Battler = require("../models/character.js");
  
  // Routes
  // =============================================================
  module.exports = function (app) {
      // Get all battler
      app.get("/api/all", function(req, res) {
        Battler.findAll({}).then(function(results) {
          res.json(results);
        });
      });
      // Add a battler
      app.post("/api/new", function (req, res) {
          console.log("Battler Data:");
          console.log(req.body);
          Battler.create({
  
              name: req.body.name,
              hitPoints: req.body.hitPoints,
              attack: req.body.attack,
              defense: req.body.defense,
              speed: req.body.speed,
              damage: req.body.damage,
              player: req.body.player
          }).then(function (results) {
              res.json(results);
          });
      });
  
      // Delete a battler
      // app.delete("/api/battler/:id", function (req, res) {
      //     console.log("Battler ID:");
      //     console.log(req.params.id);
      //     Battler.destroy({
      //         where: {
      //             id: req.params.id
      //         }
      //     }).then(function () {
      //         res.end();
      //     });
      // });
  };