tenant fixes
This commit is contained in:
@@ -398,8 +398,8 @@ static void ConfigureEndpoints(WebApplication app)
|
||||
var options = app.Services.GetRequiredService<IOptions<NotifyWebServiceOptions>>().Value;
|
||||
var tenantHeader = options.Api.TenantHeader;
|
||||
var apiBasePath = options.Api.BasePath.TrimEnd('/');
|
||||
var apiGroup = app.MapGroup(options.Api.BasePath);
|
||||
var internalGroup = app.MapGroup(options.Api.InternalBasePath);
|
||||
var apiGroup = app.MapGroup(options.Api.BasePath).RequireTenant();
|
||||
var internalGroup = app.MapGroup(options.Api.InternalBasePath).RequireTenant();
|
||||
|
||||
internalGroup.MapPost("/rules/normalize", (JsonNode? body, NotifySchemaMigrationService service) => Normalize(body, service.UpgradeRule))
|
||||
.WithName("notify.rules.normalize")
|
||||
|
||||
Reference in New Issue
Block a user