commit | author | age | ||
c958d0 | 1 | <?php |
F | 2 | |
3 | class Router { | |
4 | private array $routes = []; | |
5 | ||
6 | public function add(string $path, array $params = []): void { | |
7 | $this->routes[] = [ | |
8 | "path"=> $path, | |
9 | "params"=> $params | |
10 | ]; | |
11 | ||
12 | ||
13 | } | |
14 | } |