I write a project in dotnet Core 3.1, and all my controllers have the same attribute
[Route("api/[controller]")]
I wonder if there is a way to white this rule somewhere on a global level, like Startup.cs
I searched in the microsoft documentation and couldn't find the answer.
You can create a controller like this and all other controllers must be inherit form this controller
Another controllers should be like this