Update features on home page
This commit is contained in:
parent
53a48cba07
commit
edb172c4bc
3 changed files with 101 additions and 13 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue