mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Added a funny 404 page
This commit is contained in:
@@ -129,6 +129,10 @@ app.use('/', router);
|
||||
|
||||
app.use('/assets', express.static(publicPath + '/assets'));
|
||||
|
||||
app.use(function (req, res, next) {
|
||||
res.status(404).redirect("/404");
|
||||
})
|
||||
|
||||
db.on('error',function(err) {
|
||||
console.log("\n" + new Date().toString() + "\n Database error: ", err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user