map("GET", "/", fn() => $helloController->display()); $match = $router->match(); if ($match == null) { // TODO redirect to a 404 not found page instead (issue #1) header('HTTP/1.1 404 Not Found'); exit(1); } call_user_func($match['target']);