text: const router = require('express').Router();
  const { Question } = require('../../../models');
  
  router.post('/:quiz_id', (req,res) => {
      Question.create({
          question_text: req.body.question_text,
          choice1:req.body.choice1,
          choice2:req.body.choice2,
          choice3:req.body.choice3,
          choice4:req.body.choice4,
          correct_answer:req.body.correct_answer,
          quiz_id: req.body.quiz_id
      })
      .then(dbQuestionData => res.json(dbQuestionData))
      .catch(err => {
          console.log(err);
          res.status(500).json(err);
      });
  });
  
  
  
  
  module.exports = router;