Browse Source

Merge pull request #21645 from abpframework/auto-merge/rel-9-0/3302

Merge branch dev with rel-9.0
pull/21651/head
maliming 2 years ago
committed by GitHub
parent
commit
ce58e85422
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      framework/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Builder/AbpApplicationBuilderExtensions.cs

4
framework/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Builder/AbpApplicationBuilderExtensions.cs

@ -177,14 +177,14 @@ public static class AbpApplicationBuilderExtensions
throw new AbpException("The app(IApplicationBuilder) is not an IEndpointRouteBuilder.");
}
app.UseVirtualStaticFiles();
var options = app.ApplicationServices.GetRequiredService<IOptions<AbpAspNetCoreContentOptions>>().Value;
foreach (var folder in options.AllowedExtraWebContentFolders)
{
app.UseVirtualStaticFiles(folder);
}
app.UseVirtualStaticFiles();
return endpoints.MapStaticAssets(staticAssetsManifestPath);
}

Loading…
Cancel
Save