Add survey capability

This commit is contained in:
nemunaire 2025-10-24 18:10:41 +07:00
commit 76de5f60d6
9 changed files with 140 additions and 4 deletions

View file

@ -58,6 +58,10 @@ func DeclareRoutes(cfg *config.Config, router *gin.Engine) {
appConfig["report_retention"] = cfg.ReportRetention
}
if cfg.SurveyURL.Host != "" {
appConfig["survey_url"] = cfg.SurveyURL.String()
}
if appcfg, err := json.MarshalIndent(appConfig, "", " "); err != nil {
log.Println("Unable to generate JSON config to inject in web application")
} else {