I read a lot of blogs and questions available regarding the routes in asp.net core but did not find any one mentioning something similar.
In some conditions I want my routes to look like:
/products/1/reviews/1
Where products and reviews are followed by their id OR more nested route like:
/products/1/images/1/comments/1
Is there a way I can define a template route for it like the default one:
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});