"use strict";
const router = require("express").Router();

router.get("/", function (req, res) {
  res.render("index", {
    "user": req.user
  });
});

module.exports = router;
"use strict";
const router = require("express").Router();

router.get("/", function (req, res) {
  res.render("index", {
    "user": req.user
  });
});

module.exports = router;

Update site.js