我正在更改默认页面
services.AddRazorPages(options =>
{
//...
}).AddRazorPagesOptions(options =>
{
options.Conventions.AddPageRoute("/Home", "");
});
但是发生了异常
AmbiguousMatchException: The request matched multiple endpoints. Matches:
/Home
/Index
我能做些什么?
options.Conventions.AddPageRoute("/Home/Index", "");
。 - Akshay G