text: /**
    * Lekéri az összes autót, ami az adatbázisban van
    */
  const requireOption = require('../requireOption');
  
  module.exports = function (objectrepository) {
    const CarModel = requireOption(objectrepository, 'CarModel');
    return function (req, res, next) {
      CarModel.find({}, (err, cars) => {
        if (err) {
          return next(err);
        }
        res.locals.cars = cars;
        return next();
      });
    };
  };