@@ 65-76 (lines=12) @@ | ||
62 | ||
63 | } |
|
64 | ||
65 | public function get($route) { |
|
66 | ||
67 | $folders = explode("/", $route); |
|
68 | ||
69 | $regex = $this->readpath($folders); |
|
70 | ||
71 | if (isset($this->routes[$regex])) |
|
72 | return $this->routes[$regex]; |
|
73 | else |
|
74 | return null; |
|
75 | ||
76 | } |
|
77 | ||
78 | public function remove($route) { |
|
79 | ||
@@ 78-86 (lines=9) @@ | ||
75 | ||
76 | } |
|
77 | ||
78 | public function remove($route) { |
|
79 | ||
80 | $folders = explode("/", $route); |
|
81 | ||
82 | $regex = $this->readpath($folders); |
|
83 | ||
84 | if (isset($this->routes[$regex])) unset($this->routes[$regex]); |
|
85 | ||
86 | } |
|
87 | ||
88 | public function routes() { |
|
89 |