{"size": 266, "ext": "js", "max_stars_repo_path": "routes/api/meal.js", "max_stars_repo_name": "socunanena/meal-logger-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/api/meal.js", "max_issues_repo_name": "socunanena/meal-logger-api", "max_issues_repo_issues_event_min_datetime": "2018-07-22T07:30:38.000Z", "max_issues_repo_issues_event_max_datetime": "2018-07-22T07:30:38.000Z", "max_forks_repo_path": "routes/api/meal.js", "max_forks_repo_name": "socunanena/meal-logger-api", "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": 15.6470588235, "max_line_length": 43, "alphanum_fraction": 0.5714285714}
var keystone = require('keystone');

var Meal = keystone.list('Meal');

/**
 * List Meal
 */
exports.list = function(req, res) {
  Meal.model.find(function(err, items) {
    if (err) return res.json({ err: err });

    res.json({
      meals: items
    });
  });
};
