Added baseURL prefix

This commit is contained in:
PB
2025-11-16 14:22:05 +01:00
parent 11900eeecd
commit cbc4b21d62
4 changed files with 16 additions and 14 deletions

View File

@@ -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
}