module.exports = {
  isLoggedIn: isLoggedin
};


function isLoggedIn(req, res, next) {
  if (req.isAuthenticated()) {
    return next();
  }
  res.redirect('/');
};


module.exports = {
  isLoggedIn: isLoggedIn
};


function isLoggedIn(req, res, next) {
  if (req.isAuthenticated()) {
    return next();
  }
  res.redirect('/');
};

fix typo