text: const router = require('express').Router();
  const {
    getThoughts,
    getSingleThought,
    createThought,
    updateThought,
    deleteThought,
    addReaction,
    deleteReaction,
  } = require('../../controllers/thoughtController');
  
  // /api/thoughts
  router.route('/').get(getThoughts).post(createThought)
  
  // // /api/thoughts/:userId  POST create thought
  // router.route('/:userId').post(createThought)
  
  // /api/thoughts/:thoughtId
  router.route('/:thoughtId').get(getSingleThought).put(updateThought).delete(deleteThought)
  
  // /api/thoughts/:thoughtId/reactions  POST add reaction
  router.route('/:thoughtId/reactions').post(addReaction)
  
  // /api/thoughts/:thoughtId/reactions/:reactionId  DELETE a reaction
  router.route('/:thoughtId/reactions/:reactionId').delete(deleteReaction)
  
  module.exports = router;