Added baseURL prefix

This commit is contained in:
PB
2025-11-16 14:22:05 +01:00
parent 11900eeecd
commit d5eb16b8cd
4 changed files with 21 additions and 15 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
}