PreviousNext

Dynamic Routing in ASP.NET Core 3

by bill-s, 2020-05-08T01:26:09.816Z

ASP.NET Core 3 introduced a not so talked about feature which is dynamic routing. In a nutshell, it means that it is possible to decide at runtime the controller, action and route tokens that a request will be dispatched to. The idea is to map a route pattern to a dynamic route handler, like this: app.UseEndpoints(endpoints => { endpoints.MapDynamicControllerRoute("search/{**product}"); });

Read More