Skip to content

Commit

Permalink
feat: added favicon
Browse files Browse the repository at this point in the history
Signed-off-by: Kieran Klukas <[email protected]>
  • Loading branch information
taciturnaxolotl committed Feb 9, 2024
1 parent 6e35876 commit bfe1e08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file added content/favicon.ico
Binary file not shown.
5 changes: 5 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "." });
});

0 comments on commit bfe1e08

Please sign in to comment.