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