first commit

This commit is contained in:
2026-05-13 03:05:24 +03:30
commit 4c7343665a
27 changed files with 2581 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package httpapi
import (
_ "embed"
"net/http"
)
//go:embed static/favicon.ico
var faviconICO []byte
func (s *Server) handleFavicon(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "image/x-icon")
w.Header().Set("Cache-Control", "public, max-age=86400")
w.WriteHeader(http.StatusOK)
_, _ = w.Write(faviconICO)
}