Browse Source

Use `WithStaticAssets` for controller and razor page.

pull/21078/head
maliming 1 year ago
parent
commit
2d76ee3ef8
  1. 4
      framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcModule.cs

4
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcModule.cs

@ -197,8 +197,8 @@ public class AbpAspNetCoreMvcModule : AbpModule
options.EndpointConfigureActions.Add(endpointContext =>
{
endpointContext.Endpoints.MapControllerRoute("defaultWithArea", "{area}/{controller=Home}/{action=Index}/{id?}");
endpointContext.Endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");
endpointContext.Endpoints.MapRazorPages();
endpointContext.Endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}").WithStaticAssets();
endpointContext.Endpoints.MapRazorPages().WithStaticAssets();
});
});

Loading…
Cancel
Save