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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
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(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|