diff options
author | Mark Powers <markppowers0@gmail.com> | 2019-01-26 16:36:37 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2019-01-26 16:36:37 -0500 |
commit | edc7c8a3abacd7bc5aee50ffda3697333f91905a (patch) | |
tree | 49a2a5339911b2e3f957b4d2857334fa108f8e68 /src | |
parent | 93d4d8a1eba6ab6b714d330dc266f7e41e09a31e (diff) |
Add favicon
Diffstat (limited to 'src')
-rw-r--r-- | src/html/index.html | 5 | ||||
-rw-r--r-- | src/icon/favicon.ico | bin | 0 -> 22382 bytes | |||
-rw-r--r-- | src/server.js | 1 |
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 Binary files differnew file mode 100644 index 0000000..736fb85 --- /dev/null +++ b/src/icon/favicon.ico 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); }); |