diff options
| author | Julian Hurst <ark@mansus.space> | 2023-01-26 22:38:18 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2023-01-26 22:38:18 +0100 |
| commit | a4c588aba067051a4dd19e08f0479ea2eb7b347f (patch) | |
| tree | fda1436f0207757360f821b17590413658d772bb /main.go | |
| parent | 1c11554e269460aa6e234b9de1952802a5ce8008 (diff) | |
| download | docspace-a4c588aba067051a4dd19e08f0479ea2eb7b347f.tar.gz | |
Handle favicon.ico bs
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -604,6 +604,9 @@ func main() { http.HandleFunc("/robots.txt", func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "./robots.txt") }) + http.HandleFunc("/favicon.ico", func(w http.ResponseWriter, r *http.Request) { + http.ServeFile(w, r, "./favicon.ico") + }) http.HandleFunc("/admin", admin) http.HandleFunc("/admin/users", adminUsers) log.Printf("Serving http://localhost:%d\n", *p) |
