Add survey capability
This commit is contained in:
parent
82373cdaac
commit
76de5f60d6
9 changed files with 140 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue