Browse Source

Merge pull request #21078 from abpframework/WithStaticAssets

Use `WithStaticAssets` for controller and razor page.
pull/21079/head
liangshiwei 2 years ago
committed by GitHub
parent
commit
5fad244e8a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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