| AppVeyor | Travis |
|---|---|
Nested routing for Asp.Net Core.
Enables writing nested controllers as a way to better model how api routes look.
publicvoidConfigureServices(IServiceCollectionservices){services.AddMvc().AddNestedRouting();}You can also enable using kebab casing for routes:
publicvoidConfigureServices(IServiceCollectionservices){services.AddMvc().AddNestedRouting(useKebabCase:true);}There is also a ControllerNameAttribute you can use to override controller names:
[ControllerName("bazzzzzz")]
public class BazController : SomeBaseController
{
}
Using this together with MvcPack will give you a great way for organizing your controllers.
Basic: implements nested routing in an Asp.Net Core app (has a swagger ui that you can open so as to inspect the routes).