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

README.md

Strathweb.RouteConventions.AspNetCore

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

Usage

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