In ASP.NET MVC 4, I could ignore certain routes by using:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{*old}", new {old=@"previous(/.*)?"});
}
.NET Core doesn't have IgnoreRoute
. Is there a way to achieve this in .NET Core?
Maybe some custom middleware?