reparieren: App-Einstellungen so angeordnet, dass sie Consuemr-Apis erreichen können
This commit is contained in:
@@ -13,10 +13,10 @@ using System.Security.Claims;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
var config = builder.Configuration;
|
||||
|
||||
builder.Configuration.AddJsonFile("consumer-api.json", true, true);
|
||||
|
||||
var config = builder.Configuration;
|
||||
|
||||
var apiParams = config.Get<AuthApiParams>() ?? throw new InvalidOperationException("AuthApiOptions is missing or invalid in appsettings.");
|
||||
|
||||
// Add services to the container.
|
||||
|
||||
Reference in New Issue
Block a user