text: const express = require('express');
  const router =  express.Router();
  
  const { ensureAuthenticated } = require("../config/auth");
  
  router.get('/',(req,res)=>res.render('homepage'));
  
  //dashboard
  router.get("/dashboard", ensureAuthenticated, (req, res) =>
      res.render("dashboard", {
          name: req.user.name,
      })
  );
  
  module.exports = router;