From e5d37ece3c1c3463993aff1abae8aeede5721d47 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 10 Oct 2023 09:35:16 -0300 Subject: [PATCH] placeholder favicon handler. --- favicon.go | 5 +++++ main.go | 1 + 2 files changed, 6 insertions(+) create mode 100644 favicon.go diff --git a/favicon.go b/favicon.go new file mode 100644 index 0000000..0ab9810 --- /dev/null +++ b/favicon.go @@ -0,0 +1,5 @@ +package main + +import "net/http" + +func renderFavicon(w http.ResponseWriter, r *http.Request) {} diff --git a/main.go b/main.go index f54abd7..cc6c615 100644 --- a/main.go +++ b/main.go @@ -102,6 +102,7 @@ func main() { mux.HandleFunc("/npubs-archive/", renderArchive) mux.HandleFunc("/njump/image/", renderImage) mux.HandleFunc("/njump/proxy/", proxy) + mux.HandleFunc("/favicon.ico", renderFavicon) mux.HandleFunc("/robots.txt", renderRobots) mux.HandleFunc("/try", renderTry) mux.HandleFunc("/", render)