diff options
-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); }); |