package com.yetu.controlcenter.utils

import com.typesafe.config.ConfigFactory

object ConfigLoader {

  private val config = ConfigFactory.load()

  val householdServicesHost = WSUtils.addTrailingSlash(config.getString("householdServicesHost"))

}
package com.yetu.controlcenter.utils

import play.api.Play
import play.api.Play.current


object ConfigLoader {

    val householdServicesHost = Play.configuration.getString("householdServicesHost").get

}

Load configuration with Play.configuration instead of type safe config factory
Load configuration with Play.configuration instead of type safe config factory
