From ed06b8731d12aa681bab88fc6bc750197242385e Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Thu, 8 May 2025 18:13:06 -0700 Subject: [PATCH] fix/404 not found handling --- app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app.js b/app.js index aaf8166..b976e9a 100644 --- a/app.js +++ b/app.js @@ -73,6 +73,13 @@ app.get('/aboutUs', (req, res) => { return res.status(status.Ok); }); +// 404 handler - keep the actual notFound route please +// REALLY DONT DELETE THIS +app.get('/notFound', (req, res) => { + res.render('notFound'); + return res.status(status.NotFound); +}); + // Initialize database and start app initDatabase().then(() => { console.log("Successfully connected to MongoDB");