Configure ASP.NET for the API to work #7

Merged
Wesser merged 17 commits from feat/setting-up-asp into release/v1.0.0 2024-01-26 20:41:01 +03:00
Showing only changes of commit 92504295f0 - Show all commits

View File

@ -102,7 +102,7 @@ public class Program
{ {
var provider = app.Services.GetService<IApiVersionDescriptionProvider>(); var provider = app.Services.GetService<IApiVersionDescriptionProvider>();
foreach (var description in provider.ApiVersionDescriptions) foreach (var description in provider!.ApiVersionDescriptions)
{ {
var url = $"/swagger/{description.GroupName}/swagger.json"; var url = $"/swagger/{description.GroupName}/swagger.json";
var name = description.GroupName.ToUpperInvariant(); var name = description.GroupName.ToUpperInvariant();