redirect from favicon.ico to /static/...

This commit is contained in:
fiatjaf
2023-10-22 09:28:33 -03:00
parent 62ec86cf07
commit e4f0e40123
3 changed files with 5 additions and 6 deletions

View File

@@ -73,12 +73,12 @@ 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("/r/", renderRelayPage)
mux.HandleFunc("/random", redirectToRandom)
mux.HandleFunc("/e/", redirectFromESlash)
mux.HandleFunc("/p/", redirectFromPSlash)
mux.HandleFunc("/favicon.ico", redirectToFavicon)
mux.HandleFunc("/", renderEvent)
log.Print("listening at http://0.0.0.0:" + s.Port)