I wanted to set my starting page to /Members/Index.
When I was using MVC, I configured it as following:
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Members}/{action=Index}/{id?}");
});
But now I'm trying new Razor Pages approach, and now Members is folder and Index is Razor Page.
How to set this page in folder as starting one?
I can add Index page in root directory and make redirect there, but I was looking for something cleaner.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…