We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UseVirtualStaticFiles
AllowedExtraWebContentFolders
1 parent 2dcf019 commit 55aab15Copy full SHA for 55aab15
framework/src/Volo.Abp.AspNetCore/Microsoft/AspNetCore/Builder/AbpApplicationBuilderExtensions.cs
@@ -177,14 +177,14 @@ public static StaticAssetsEndpointConventionBuilder MapAbpStaticAssets(this IApp
177
throw new AbpException("The app(IApplicationBuilder) is not an IEndpointRouteBuilder.");
178
}
179
180
- app.UseVirtualStaticFiles();
181
-
182
var options = app.ApplicationServices.GetRequiredService<IOptions<AbpAspNetCoreContentOptions>>().Value;
183
foreach (var folder in options.AllowedExtraWebContentFolders)
184
{
185
app.UseVirtualStaticFiles(folder);
186
187
+ app.UseVirtualStaticFiles();
+
188
return endpoints.MapStaticAssets(staticAssetsManifestPath);
189
190
0 commit comments