{"size": 732, "ext": "js", "max_stars_repo_path": "routes/htmlRoutes.js", "max_stars_repo_name": "etorres-revature/Express.js-Note_Taker", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/htmlRoutes.js", "max_issues_repo_name": "etorres-revature/Express.js-Note_Taker", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/htmlRoutes.js", "max_forks_repo_name": "etorres-revature/Express.js-Note_Taker", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 34.8571428571, "max_line_length": 87, "alphanum_fraction": 0.618852459}
const path = require("path");

module.exports = (app) => {
  //* GET `/notes` - Should return the `notes.html` file.
  //get request to display page to write, save, and delete notes
  app.get("/notes", (req, res) => {
    res.sendFile(path.join(__dirname + "/../public", "notes.html"));
  });

  //unnecessary code to display index.html home page - the wildcard covers this as well
  app.get("/", (req, res) => {
    res.sendFile(path.join(__dirname + "/../public", "index.html"));
  });

  //* GET `*` - Should return the `index.html` file
  //get request to display homepage no matter what is enterd into the address bar
  app.get("*", (req, res) => {
    res.sendFile(path.join(__dirname + "/../public", "index.html"));
  });
};
