fix/404 not found handling

This commit is contained in:
SowinskiBraeden committed 2025-05-08 18:13:06 -07:00
1 parent 345cbd2bf2
commit ed06b8731d
1 file changed
+7
+7
View File
@@ -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");