text: const router = require("express").Router();
  const path = require("path");
  
  router.get('/', (req, res) => {
      res.sendFile(path.join(__dirname, '../public/index.html'));
  });
  
  
  // creates new workout form
  router.get("/exercise", function (req, res) {
      res.sendFile(path.join(__dirname, "../public/exercise.html"))
  });
  
  router.get('/exercise?', (req, res) => {
      res.sendFile(path.join(__dirname, '../public/exercise.html'));
  });
  
  // links to your stats for workouts
  router.get("/stats", (req, res) => {
      res.sendFile(path.join(__dirname, "../public/stats.html"))
  });
  
  module.exports = router;