New route to check blacklist only

This commit is contained in:
nemunaire 2025-10-31 11:01:58 +07:00
commit bc6a6397ad
9 changed files with 586 additions and 2 deletions

View file

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