placeholder favicon handler.

This commit is contained in:
fiatjaf
2023-10-10 09:35:16 -03:00
parent 637cfa55e9
commit e5d37ece3c
2 changed files with 6 additions and 0 deletions

5
favicon.go Normal file
View File

@@ -0,0 +1,5 @@
package main
import "net/http"
func renderFavicon(w http.ResponseWriter, r *http.Request) {}

View File

@@ -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)