web: verze API na jednom místě a číslo verze v patičce

This commit is contained in:
PatTheEvil committed 2026-12-02 18:54:15 +01:00
1 parent 946ff5ce12
commit 5d8b71c435
11 files changed
+102 -18

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ builder.Services.AddOptions<ApiOptions>()
static void ConfigureApiClient(IServiceProvider services, HttpClient http)
{
var options = services.GetRequiredService<IOptions<ApiOptions>>().Value;
http.BaseAddress = new Uri(options.BaseUrl.EndsWith('/') ? options.BaseUrl : options.BaseUrl + "/");
http.BaseAddress = options.VersionedBaseAddress();
http.Timeout = options.Timeout;
}