text: const router = require('express').Router();
  const { Blog, User } = require('../models');
  
  router.get('/', async(req,res) =>{
      console.log('in dashboard routes')
      try {
          
          const userProfile = await User.findByPk(req.body.user, {
              include: [
                  {
                      model: Blog,
                  }
              ]
          });
  
          const profile = userProfile.get({ plain: true });
          console.log(profile)
          res.render('dashboard',
          {
              profile,
              logged_in: req.session.user_id
          });
      } catch (err) {
          res.status(500).json(err);
      }
  })
  
  module.exports = router;