const express = require('express'); const router = express.Router(); const { getUser } = require('../util.js'); // Rendering the main page router.get('/', function (req, res) { console.log(getUser(req)); res.render('layouts/main', { title: "Nat & Sami's Rare Earth Metals", loggedIn: getUser(req) != null, user: getUser(req), content: `
`, }); }) module.exports = router;