标签:dmi min out points 文件 defaults nts route action
startup.cs文件
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "Areas",
pattern: "{area:exists}/{controller=Index}/{action=Index}/{id?}",
defaults: new { Area = "Admin", Controller = "Index", Action = "Index" }
);
});
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
标签:dmi min out points 文件 defaults nts route action
原文地址:https://www.cnblogs.com/wugh8726254/p/13059223.html