Skip to content
No description, website, or topics provided.
C#
Branch: master
Clone or download
Latest commit b027d21 Oct 1, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Strathweb.RouteConventions.AspNetCore
.gitignore
LICENSE
README.md

README.md

📢 IMPORTANT 📢 This feature has been added to WebApiContrib.Core

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

You can’t perform that action at this time.