{"size": 971, "ext": "js", "max_stars_repo_path": "routes/index.js", "max_stars_repo_name": "Jason-Pearson/comp308-lesson3", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/index.js", "max_issues_repo_name": "Jason-Pearson/comp308-lesson3", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/index.js", "max_forks_repo_name": "Jason-Pearson/comp308-lesson3", "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": 40.4583333333, "max_line_length": 199, "alphanum_fraction": 0.6549948507}
let express = require('express');
let router = express.Router();

/* GET home page. */
router.get('/', (req, res, next) =>{
  let currentDate = new Date(); //local variable for Callback Function
  res.render('index', { 
    title: 'Home',
  date: `${currentDate.getMonth()}, ${currentDate.getDay()}, ${currentDate.getFullYear()} (MM,DD,YYYY) -- ${currentDate.getHours()}:${currentDate.getMinutes()}:${currentDate.getSeconds()} (HH:MM:SS)`

   });
});

/* GET about page. Extra route using about.ejs View*/
router.get('/about', (req, res, next) =>{
    let currentDate = new Date();//local variable for Callback Function
  res.render('about', { 
    title: 'About',
date: `${currentDate.getMonth()}, ${currentDate.getDay()}, ${currentDate.getFullYear()} (MM,DD,YYYY) -- ${currentDate.getHours()}:${currentDate.getMinutes()}:${currentDate.getSeconds()} (HH:MM:SS)`
 }); //Render about.ejs view, ref. title/date - pass in 'About' and time, etc
});

module.exports = router;
