Skip to content

Commit

Permalink
Removed old route
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Apr 15, 2012
1 parent 0a5622e commit 7fab9e8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ app.get('/', function(req, res) {
res.render('dashboard', { polls: doc });
});
} else {


res.render('home');
}
});
Expand Down Expand Up @@ -194,16 +192,6 @@ app.post('/new', function(req, res) {
res.redirect('/polls');
});

app.get('/polls', function(req, res) {
if(! req.loggedIn) {
res.redirect('/login');
}

var polls = Poll.find({ 'author': req.user._id }, function(err, doc) {
res.render('listpolls', { polls: doc });
});
});

app.get('/poll/:code', function(req, res) {
Poll.where('code', req.params.code)
.limit(1)
Expand Down

0 comments on commit 7fab9e8

Please sign in to comment.