aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-03-26 12:39:34 +0100
committerDennis Eriksen <dennis.se@gmail.com>2013-03-26 12:39:34 +0100
commit1509f660231319cf3da4a6559de826e4786005bd (patch)
tree8d488b24de2178d7d8615c5fbe3e0597cb9209b5
parentadded email dispatcher (diff)
downloadDivid-1509f660231319cf3da4a6559de826e4786005bd.tar.gz
added 404
-rw-r--r--routes/router.js21
-rw-r--r--views/error/404.ejs10
2 files changed, 31 insertions, 0 deletions
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' });
+ });
+
+
+
+
+
+
+
+
+
+
+
+
+
+
}
diff --git a/views/error/404.ejs b/views/error/404.ejs
new file mode 100644
index 0000000..22ba15d
--- /dev/null
+++ b/views/error/404.ejs
@@ -0,0 +1,10 @@
+<% include ../header %>
+
+</head>
+<body>
+ <h1><%= title %></h1>
+ <p>Velkommen til <%= title %></p>
+ <p>Her kommer det <em>kanskje</em> mer senere.</p>
+
+
+<% include ../footer %>