Merge pull request #5303 from sbwalker/dev

move ConfigureOqtaneAssemblies to occur before UseEndpoints
This commit is contained in:
Shaun Walker
2025-05-14 11:13:12 -04:00
committed by GitHub

View File

@ -195,9 +195,6 @@ namespace Oqtane
app.UseHsts();
}
// execute any IServerStartup logic
app.ConfigureOqtaneAssemblies(env);
// allow oqtane localization middleware
app.UseOqtaneLocalization();
@ -228,6 +225,9 @@ namespace Oqtane
app.UseAuthorization();
app.UseAntiforgery();
// execute any IServerStartup logic
app.ConfigureOqtaneAssemblies(env);
if (_useSwagger)
{
app.UseSwagger();