const grantAccess = (req, res, next) => { if(!req.query.age){ res.send("Please enter your age") } else if(req.query.age < 18){ res.send("You are not allowed to access this website"); } else{ next(); } } module.exports = grantAccess;