wire in environment and share handlers (#319)

This commit is contained in:
Michael Quigley 2023-05-09 16:48:11 -04:00
parent 3f8c939adb
commit e7048e4051
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -49,6 +49,8 @@ func Run(inCfg *config.Config) error {
api.MetadataConfigurationHandler = newConfigurationHandler(cfg)
if cfg.Metrics != nil && cfg.Metrics.Influx != nil {
api.MetadataGetAccountMetricsHandler = newGetAccountMetricsHandler(cfg.Metrics.Influx)
api.MetadataGetEnvironmentMetricsHandler = newGetEnvironmentMetricsHandler(cfg.Metrics.Influx)
api.MetadataGetShareMetricsHandler = newGetShareMetricsHandler(cfg.Metrics.Influx)
}
api.MetadataGetEnvironmentDetailHandler = newEnvironmentDetailHandler()
api.MetadataGetShareDetailHandler = newShareDetailHandler()