Nonexisting routes will simply return an error page instead of redirecting to home page

pull/2/head
Sahat Yalkabov 2013-12-06 03:07:45 -05:00
parent 09c1f649fc
commit 4887ec5dd8
1 changed files with 0 additions and 4 deletions

4
app.js
View File

@ -76,13 +76,9 @@ app.get('/auth/google/callback', passport.authenticate('google', { successRedire
app.get('/auth/twitter', passport.authenticate('twitter'));
app.get('/auth/twitter/callback', passport.authenticate('twitter', { successRedirect: '/', failureRedirect: '/login' }));
app.get('/auth/foursquare', api.foursquareAuth);
app.get('/auth/foursquare/callback', api.foursquareCallback);
app.get('*', home.index);
app.listen(app.get('port'), function() {
console.log('Express server listening on port ' + app.get('port'));
});