text: const router = require('express').Router();
  const { Comment } = require('../../models');
  const withAuth = require('../../utils/auth');
  
  router.post('/', withAuth, async (req, res) => {
      console.log("comment hit")
      try {
          const newComment = await Comment.create({
              ...req.body,
              user_c_id: req.session.user_id,
          })
          console.log(newComment)
          res.json(newComment)
      } catch (err) {
          console.log(err);
          res.status(500).json(err);
      }
  });
  
  
  
  module.exports = router;