Merge pull request #188 from MythicalPlayz/404

This commit is contained in:
Jonathan Barrow
2024-04-26 09:41:05 -04:00
committed by GitHub
5 changed files with 131 additions and 3 deletions

View File

@@ -113,10 +113,9 @@ app.use('/nso-legacy-pack', routes.aprilfools);
logger.info('Creating 404 status handler');
// This works because it is the last router created
// Meaning the request could not find a valid router
app.use((request, response, next) => {
app.use((request, response) => {
const fullUrl = util.fullUrl(request);
logger.warn(`HTTP 404 at ${fullUrl}`);
next();
response.render('404');
});
logger.info('Setting up handlebars engine');