Nonexisting routes will simply return an error page instead of redirecting to home page
parent
09c1f649fc
commit
4887ec5dd8
4
app.js
4
app.js
|
@ -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'));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue