diff --git a/AltoRouter.php b/AltoRouter.php index b0773e7..f249ca5 100644 --- a/AltoRouter.php +++ b/AltoRouter.php @@ -25,7 +25,9 @@ class AltoRouter { */ public function map($method, $route, $target, $name = null) { - $route = $this->basePath . $route; + if($route != '*') { + $route = $this->basePath . $route; + } $this->routes[] = array($method, $route, $target, $name);