asp.net core 2.2 Identity was added via
services.AddIdentity<ApplicationUser, ApplicationRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddDefaultTokenProviders()
.AddDefaultUI();
The login is set to "/Identity/Account/Login":
options.LoginPath = "/Identity/Account/Login";
Now how do I change the routes from the Identity area, which was added via the Startup.cs so that I can do for example:
https://www.example.com/admin instead of having https://www.example.com/identity/account/login
or
https://www.example.com/register so that it goes to HomeController->RegisterAction. This would allow me to catch and redirect the HomeController->RegisterAction it to HomeController->IndexAction in order to disable the registrations.