web: verze API na jednom místě a číslo verze v patičce
This commit is contained in:
1 parent
946ff5ce12
commit
5d8b71c435
11 files changed
+102
-18
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user