text: const router = require('express').Router();
  const {
      getThoughts,
      getSingleThought,
      createThought,
      updateThought,
      deleteThought,
      createReaction,
      deleteReaction,
  } = require('../../controllers/thoughtController.js');
  
  // /api/thoughts
  router.route('/').get(getThoughts).post(createThought);
  
  router.route('/:thoughtId/reactions/:reactionId').delete(deleteReaction);
  
  // /api/thoughts/:thoughtId
  router
      .route('/:thoughtId')
      .get(getSingleThought)
      .put(updateThought)
      .delete(deleteThought)
      .post(createReaction);
  
  module.exports = router;
  