dot net core route - how to hide controller while calling api RRS feed

  • Question

  • Hi Team,

    Framework - Dot Net Core 2.0 

    Application - Rest Web API 

    I want to remove the controller name from my URL (for one specific controller). For example:

    I would want this URL to be changed to:

    Startup.cs file


     public void ConfigureServices(IServiceCollection services)
            } public void Configure(IApplicationBuilder app, IHostingEnvironment env)


    Controller file.


    public class ValueController : Controller


            public GetUserRoles(string username)




    • Moved by CoolDadTx Friday, September 28, 2018 2:47 PM ASP.NET related
    Thursday, September 27, 2018 11:09 PM

All replies