Permalink
Browse files

Removed old route

  • Loading branch information...
wylieconlon committed Apr 15, 2012
1 parent 0a5622e commit 7fab9e8320918a87ee8ca752fab8dd6b3ee71a4c
Showing with 0 additions and 12 deletions.
  1. +0 −12 app.js
View
12 app.js
@@ -136,8 +136,6 @@ app.get('/', function(req, res) {
res.render('dashboard', { polls: doc });
});
} else {
-
-
res.render('home');
}
});
@@ -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)

0 comments on commit 7fab9e8

Please sign in to comment.