From 750864290f84da7a655b3be3ce00c50578f5945d Mon Sep 17 00:00:00 2001 From: John Long Date: Thu, 23 May 2013 00:07:59 -0500 Subject: [PATCH] Don't add base path when route is '*' --- AltoRouter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);