{"size": 735, "ext": "js", "max_stars_repo_path": "Main/routes/api/thoughtRoutes.js", "max_stars_repo_name": "lills1/social-network-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Main/routes/api/thoughtRoutes.js", "max_issues_repo_name": "lills1/social-network-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Main/routes/api/thoughtRoutes.js", "max_forks_repo_name": "lills1/social-network-api", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.25, "max_line_length": 91, "alphanum_fraction": 0.7129251701}
const router = require('express').Router();
const {
  getThoughts,
  getSingleThought,
  createThought,
  deleteThought,
  updateThought,
  // createReaction,
  // deleteReaction
} = require('../../controllers/thoughtController.js');

// /api/courses
router.route('/').get(getThoughts).post(createThought);
router.route('/:thoughtId').get(getSingleThought).delete(deleteThought).put(updateThought);
// /api/courses/:courseId

// http://localhost:3001/api/thoughts/:id/reactions
// router
//   .route('/:thoughtId/reactions')
//   .post(createReaction)

// // http://localhost:3001/api/thoughts/:id/reactions/:reactionId
// router
//   .route('/:thoughtId/reactions/:reactionId')
//   .delete(deleteReaction);

module.exports = router;
