Added baseURL prefix
This commit is contained in:
@@ -18,7 +18,7 @@ type PricingAPI struct {
|
||||
func (a *PricingAPI) GetProductPrice(productID int) (*pricing.ProductPriceResponseDTO, error) {
|
||||
url := fmt.Sprintf("/api/v1/product/%d", productID)
|
||||
res := new(pricing.ProductPriceResponseDTO)
|
||||
if err := a.httpClient.SendGet("pricing-svc", url, nil, res); err != nil {
|
||||
if err := a.httpClient.SendGet(url, nil, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user