mirror of
https://github.com/openziti/zrok.git
synced 2024-11-25 17:43:53 +01:00
wire in environment and share handlers (#319)
This commit is contained in:
parent
3f8c939adb
commit
e7048e4051
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user