Update features on home page

This commit is contained in:
nemunaire 2025-10-24 17:35:58 +07:00
commit edb172c4bc
3 changed files with 101 additions and 13 deletions

View file

@ -54,6 +54,10 @@ func init() {
func DeclareRoutes(cfg *config.Config, router *gin.Engine) {
appConfig := map[string]interface{}{}
if cfg.ReportRetention > 0 {
appConfig["report_retention"] = cfg.ReportRetention
}
if appcfg, err := json.MarshalIndent(appConfig, "", " "); err != nil {
log.Println("Unable to generate JSON config to inject in web application")
} else {