map("GET", "/", fn() => $helloController->display()); $match = $router->match(); if (!$match) { $error = "error404"; require_once 'src/View/error.php'; header('HTTP/1.1 404 Not Found'); exit(1); } call_user_func($match['target']);