Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed old route

  • Loading branch information...
commit 7fab9e8320918a87ee8ca752fab8dd6b3ee71a4c 1 parent 0a5622e
@wylieconlon authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.