home_control.js 165 B

12345678
  1. exports.index = function(req, res) {
  2. if (req.user) {
  3. return res.redirect('/user/:username');
  4. }
  5. res.render('index', {
  6. title: 'You Be the Judge'
  7. });
  8. };