In my .Net Core 2.1 application, controllers are defined as
[Route("v1/api/[controller]")]
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
public class AccountController : Controller
{
// peace & love
}
I need to deny access for all users to any route that matches the pattern
v1/api/operations/*
In Startup, we add MvcCore as
services.AddMvcCore()
.AddAuthorization()
.AddApiExplorer();
and then configure the app to use MVC as
app.UseMvc();
How can I ensure that no users can access any resource on the /operations route?

