src/router.php @@ -9,6 +9,14 @@ "params"=> $params ]; } public function match (string $path,): array|bool { foreach ($this->routes as $route) { if ($route["path"] === $path) { return $route["params"]; } } return false; } }