Merge pull request #5303 from sbwalker/dev
move ConfigureOqtaneAssemblies to occur before UseEndpoints
This commit is contained in:
commit
84844c5043
@ -195,9 +195,6 @@ namespace Oqtane
|
|||||||
app.UseHsts();
|
app.UseHsts();
|
||||||
}
|
}
|
||||||
|
|
||||||
// execute any IServerStartup logic
|
|
||||||
app.ConfigureOqtaneAssemblies(env);
|
|
||||||
|
|
||||||
// allow oqtane localization middleware
|
// allow oqtane localization middleware
|
||||||
app.UseOqtaneLocalization();
|
app.UseOqtaneLocalization();
|
||||||
|
|
||||||
@ -228,6 +225,9 @@ namespace Oqtane
|
|||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
app.UseAntiforgery();
|
app.UseAntiforgery();
|
||||||
|
|
||||||
|
// execute any IServerStartup logic
|
||||||
|
app.ConfigureOqtaneAssemblies(env);
|
||||||
|
|
||||||
if (_useSwagger)
|
if (_useSwagger)
|
||||||
{
|
{
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user