ASP.NET CORE 中是否有与 paths.IgnoreRoute(...) 等效的函数?

Nee*_*ack 5 asp.net asp.net-mvc asp.net-routing asp.net-core-mvc asp.net-core

在 ASP.NET MVC 4 中,我可以使用以下方法忽略某些路由:

public static void RegisterRoutes(RouteCollection routes)
{
    routes.IgnoreRoute("{*old}", new {old=@"previous(/.*)?"});
}
Run Code Online (Sandbox Code Playgroud)

.NET Core 没有IgnoreRoute. 有没有办法在.NET Core 中实现这一点?也许一些自定义中间件?