Removed 404 error handler and 404 page
This commit is contained in:
11
app.js
11
app.js
@@ -194,18 +194,9 @@ app.get('/auth/venmo/callback', passport.authorize('venmo', { failureRedirect: '
|
||||
res.redirect('/api/venmo');
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* 404 Error Handler
|
||||
*/
|
||||
|
||||
app.use(function(req, res) {
|
||||
res.status(404);
|
||||
res.render('404');
|
||||
});
|
||||
|
||||
/**
|
||||
* 500 Error Handler.
|
||||
* As of Express 4.0 it must be placed at the end of all routes.
|
||||
*/
|
||||
|
||||
app.use(errorHandler());
|
||||
|
Reference in New Issue
Block a user