Add favicon

Closes #8.
This commit is contained in:
jordi fita mas 2023-07-26 18:59:17 +02:00
parent cab949f8a6
commit 341520def3
2 changed files with 6 additions and 2 deletions

View File

@ -61,9 +61,13 @@ func (h *App) ServeHTTP(w http.ResponseWriter, r *http.Request) {
requestPath := r.URL.Path
var head string
head, r.URL.Path = shiftPath(r.URL.Path)
if head == "static" {
switch head {
case "static":
h.fileHandler.ServeHTTP(w, r)
} else {
case "favicon.ico":
r.URL.Path = requestPath
h.fileHandler.ServeHTTP(w, r)
default:
conn, err := h.db.Acquire(r.Context())
if err != nil {
panic(err)

BIN
web/static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB