{"size": 336, "ext": "js", "max_stars_repo_path": "routes/api/user.js", "max_stars_repo_name": "choumrdh/Project_3_CodeVid20", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/api/user.js", "max_issues_repo_name": "choumrdh/Project_3_CodeVid20", "max_issues_repo_issues_event_min_datetime": "2021-09-02T14:58:09.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T14:58:09.000Z", "max_forks_repo_path": "routes/api/user.js", "max_forks_repo_name": "choumrdh/Project_3_CodeVid20", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.4, "max_line_length": 66, "alphanum_fraction": 0.7053571429}
const router = require("express").Router();
const userController = require("../../controller/userController");

router.route("/")
  .get(userController.all)
  .post(userController.create);

router
  .route("/events/:id")
  .get(userController.eventsByUser)

  router
  .route("/:id")
  .get(userController.find)
module.exports = router;