Skip to content

Commit

Permalink
Remove hardcoded price api base address
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Frohlich committed Mar 19, 2024
1 parent d2773d6 commit 55bf600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CostApi/AzurePriceRetriever.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public async Task<IEnumerable<PriceRecord>> GetAzurePricesAsync(string currencyC
_client.BaseAddress = new Uri(PriceApiAddress);

var prices = new List<PriceRecord>();
string? url = "https://prices.azure.com/api/retail/prices?api-version=2023-01-01-preview&currencyCode='" + currencyCode + "'";
string? url = "api/retail/prices?api-version=2023-01-01-preview&currencyCode='" + currencyCode + "'";

// Append the filter to the URL if it's provided
if (!string.IsNullOrWhiteSpace(filter))
Expand Down

0 comments on commit 55bf600

Please sign in to comment.