Added baseURL for rest api clients
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user