No description or website provided.
Latest commit ad28125 Jun 10, 2016 @filipw committed on GitHub Create


ASP.NET Core MVC application model convention allowing you to specify a global route prefix that will be applied implicitly on every controller.


public void ConfigureServices(IServiceCollection services)
    services.AddMvc(opt =>
        // now each route on every controller gets an "api" prefix
        opt.UseCentralRoutePrefix(new RouteAttribute("api"));

Further reading

More info and background - in a blog post