old_contents: /**
   * GET /
   * Home page.
   */
  exports.index = function(req, res) {
  
    var domain = req.headers.host,
        subDomain = domain.split('.');
  
    if(subDomain.length > 1){
      subDomain = subDomain[0].split("-").join(" ");
      if (req.user) {
        return res.redirect('/dashboard_employee');
      }
      else{
        res.redirect('/home');
      }
  
    }
    else{
      if (req.user) {
        return res.redirect('/dashboard_admin');
      }
      else{
        res.render('home');
      }
    }
  
  
  
  
  };
  
new_contents: /**
   * GET /
   * Home page.
   */
  exports.index = function(req, res) {
  
    var domain = req.headers.host,
        subDomain = domain.split('.');
  
    if(subDomain.length > 1){
      subDomain = subDomain[0].split("-").join(" ");
      if (req.user) {
        return res.redirect('/dashboard_employee');
      }
      else{
        res.redirect('/');
      }
  
    }
    else{
      if (req.user) {
        return res.redirect('/dashboard_admin');
      }
      else{
        res.render('home');
      }
    }
  
  
  
  
  };
  
subject: Update home.js