aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2019-01-26 16:36:37 -0500
committerMark Powers <markppowers0@gmail.com>2019-01-26 16:36:37 -0500
commitedc7c8a3abacd7bc5aee50ffda3697333f91905a (patch)
tree49a2a5339911b2e3f957b4d2857334fa108f8e68 /src
parent93d4d8a1eba6ab6b714d330dc266f7e41e09a31e (diff)
Add favicon
Diffstat (limited to 'src')
-rw-r--r--src/html/index.html5
-rw-r--r--src/icon/favicon.icobin0 -> 22382 bytes
-rw-r--r--src/server.js1
3 files changed, 4 insertions, 2 deletions
diff --git a/src/html/index.html b/src/html/index.html
index 087cf5b..dea7073 100644
--- a/src/html/index.html
+++ b/src/html/index.html
@@ -4,8 +4,9 @@
<title>Mark's Kitchen</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" type="text/css" href="css/bootstrap.css">
- <link rel="stylesheet" type="text/css" href="css/styles.css">
+ <link rel="stylesheet" type="text/css" href="/css/bootstrap.css">
+ <link rel="stylesheet" type="text/css" href="/css/styles.css">
+ <link rel="shortcut icon" href="/favicon.ico">
</head>
<body>
<h1>Welcome to Mark's Kitchen</h1>
diff --git a/src/icon/favicon.ico b/src/icon/favicon.ico
new file mode 100644
index 0000000..736fb85
--- /dev/null
+++ b/src/icon/favicon.ico
Binary files differ
diff --git a/src/server.js b/src/server.js
index 241f3fc..a487af5 100644
--- a/src/server.js
+++ b/src/server.js
@@ -20,6 +20,7 @@ function setUpRoutes(){
})
+ server.get('/favicon.ico', (req, res) => res.sendFile(__dirname + "/icon/favicon.ico"))
server.get('/css/:id', (req, res) => {
res.sendFile(__dirname + "/css/"+req.params.id);
});