package api import "net/http" func (a *API) HandleConfig(w http.ResponseWriter, r *http.Request) { resp := map[string]any{ "site_title": a.Cfg.Server.SiteTitle, } if a.Cfg.Server.FaviconPath != "" { resp["favicon_url"] = "/favicon" } if a.Cfg.Server.LogoPath != "" { resp["logo_url"] = "/logo" } writeJSON(w, http.StatusOK, resp) }