diff options
Diffstat (limited to '')
-rw-r--r-- | router.js | 2 | ||||
-rw-r--r-- | views/error/404.ejs | 10 |
2 files changed, 1 insertions, 11 deletions
@@ -45,7 +45,7 @@ module.exports = function(app) { */ app.get('*', function(req, res) { - res.render('error/404', { title: 'Fant ikke siden' }); + res.render('error', { title: '404', text: 'Fant ikke siden' }); }); diff --git a/views/error/404.ejs b/views/error/404.ejs deleted file mode 100644 index 22ba15d..0000000 --- a/views/error/404.ejs +++ /dev/null @@ -1,10 +0,0 @@ -<% include ../header %> - -</head> -<body> - <h1><%= title %></h1> - <p>Velkommen til <%= title %></p> - <p>Her kommer det <em>kanskje</em> mer senere.</p> - - -<% include ../footer %> |