EnvironmentConfig.share constructor
EnvironmentConfig.share()
Implementation
factory EnvironmentConfig.share() {
switch(environmentConfig.environment){
case FastAppEnvironment.dev:
environmentConfig.address = fastApiHostConfig.devAddress;
break;
case FastAppEnvironment.test:
environmentConfig.address = fastApiHostConfig.testAddress;
break;
case FastAppEnvironment.local:
environmentConfig.address = "http://localhost.com";
break;
case FastAppEnvironment.product:
environmentConfig.address = fastApiHostConfig.productAddress;
break;
case FastAppEnvironment.guest:
environmentConfig.address = fastApiHostConfig.geustAddress;
break;
}
return environmentConfig;
}