diff --git a/content/favicon.ico b/content/favicon.ico new file mode 100644 index 0000000..321e2b9 Binary files /dev/null and b/content/favicon.ico differ diff --git a/index.ts b/index.ts index 10c50ea..4c4db2a 100644 --- a/index.ts +++ b/index.ts @@ -34,3 +34,8 @@ const server = http.createServer(app); server.listen(port, () => { console.log(`Server is listening on port ${port}`); }); + +app.get("/favicon.ico", (req, res, next) => { + // pass the favicon file back to the browser + res.sendFile("content/favicon.ico", { root: "." }); +});