server side favicon retrieving and caching

This commit is contained in:
yusing
2025-01-12 10:30:37 +08:00
parent 0ce7f29976
commit c7c6a097f0
9 changed files with 343 additions and 11 deletions

View File

@@ -34,6 +34,7 @@ func NewHandler(cfg config.ConfigInstance) http.Handler {
mux.HandleFunc("GET", "/v1/schema/{filename...}", v1.GetSchemaFile)
mux.HandleFunc("GET", "/v1/stats", useCfg(cfg, v1.Stats))
mux.HandleFunc("GET", "/v1/stats/ws", useCfg(cfg, v1.StatsWS))
mux.HandleFunc("GET", "/v1/favicon/{alias}", auth.RequireAuth(v1.GetFavIcon))
return mux
}