diff --git a/api/rest/basket.go b/api/rest/basket.go index 1d8a4fe..336efa1 100644 --- a/api/rest/basket.go +++ b/api/rest/basket.go @@ -4,10 +4,11 @@ import ( "fmt" basket "git.ego.freeddns.org/egommerce/api-entities/basket/dto" + cnf "git.ego.freeddns.org/egommerce/go-api-pkg/config" ) func NewBasketAPI() *BasketAPI { - return &BasketAPI{NewHttpClient()} + return &BasketAPI{NewHttpClient(cnf.GetEnv("API_REST_BASKET", "basket-svc"))} } type BasketAPI struct { diff --git a/api/rest/pricing.go b/api/rest/pricing.go index 367e71b..1ae4c23 100644 --- a/api/rest/pricing.go +++ b/api/rest/pricing.go @@ -4,10 +4,11 @@ import ( "fmt" pricing "git.ego.freeddns.org/egommerce/api-entities/pricing/dto" + cnf "git.ego.freeddns.org/egommerce/go-api-pkg/config" ) func NewPricingAPI() *PricingAPI { - return &PricingAPI{NewHttpClient()} + return &PricingAPI{NewHttpClient(cnf.GetEnv("API_REST_PRICING", "pricing-svc"))} } type PricingAPI struct {