# ASP.NET Controller Route Configuration
The following rules apply when determining the route of an ASP.NET controller:
- It does not matter which folder (or namespace) controllers are placed in
- It does not matter what name the controllers have (kind of, see below)
- A controller must have an `ApiCotroller` attribute and the corresponding method must have an `Http*` attribute
- The framework assigns a name to a controller that matches the class name, unless the class name ends with `Controller`, in which case the word `Controller` is stripped (e.g. `EventsController` becomes just `Events`).
- Each controller must have a `Route` attribute (or at least each controller that inherits from `ControllerBase`, MVC controllers inherit from `Controller`). The attribute can be configured with the name defined above (`[Route("[controller]")]`, where `[controller]` references the name of the controller, and not the name of the class) or explicitly (`[Route(“MyAmazingRoute”)]`).