{"size": 372, "ext": "js", "max_stars_repo_path": "app/routes/question.js", "max_stars_repo_name": "matheusFTC/question-box-server", "max_stars_repo_stars_event_min_datetime": "2017-04-19T20:38:38.000Z", "max_stars_repo_stars_event_max_datetime": "2017-04-19T20:38:38.000Z", "max_issues_repo_path": "app/routes/question.js", "max_issues_repo_name": "matheusFTC/question-box", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/routes/question.js", "max_forks_repo_name": "matheusFTC/question-box", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.6153846154, "max_line_length": 57, "alphanum_fraction": 0.7123655914}
module.exports = function(app) {
  var controller = app.controllers.question;
  var validate = app.controllers.authentication.validate;

  app.route("/questions")
    .get(controller.findAll)
    .post(validate, controller.save);

  app.route("/questions/:_id")
    .get(controller.findById)
    .put(validate, controller.save)
    .delete(validate, controller.remove);
};