To enable custom controllers, add a default route.
app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "defaultRoute", pattern: "{controller=Page}/{action=Index}/{id?}" ); });
In some cases it's good to protect Controller - Actions, therefor some attribute filters are available.
SetupIsEnabled
In case of adding some feature specificly when the setup is enabled. See configuration section.
UserAuthorizedFilter
Return 401 Unauthorized when user is not logged in. No backend access needed.
UserAuthorizedForBackend
Return 401 Unauthorized when user is not logged in or no backend access is given.
UserAuthorizedForAreaFilter
Return 401 Unauthorized when user is not logged in or access to specific area is not given.