public static function filter_by_request() { $routes = Main::get_instance()->routes; if (!$routes) { return; } return \_u::find($routes, function ($route) { return $route->method->equalsCurrent() && ($route->path->equalsCurrent() || $route->path->matchParams()) && Agent::matchesCurrent($route->agent); }); }