From 1509f660231319cf3da4a6559de826e4786005bd Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 26 Mar 2013 12:39:34 +0100 Subject: added 404 --- routes/router.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'routes/router.js') diff --git a/routes/router.js b/routes/router.js index 11d45bb..d0442b8 100644 --- a/routes/router.js +++ b/routes/router.js @@ -40,4 +40,25 @@ module.exports = function(app) { }); + /* + * 404 ERROR + */ + + app.get('*', function(req, res) { + res.render('error/404', { title: 'Fant ikke siden' }); + }); + + + + + + + + + + + + + + } -- cgit v1.2.3