1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-06 00:17:29 +02:00

Don't add base path when route is '*'

This commit is contained in:
John Long
2013-05-23 00:07:59 -05:00
parent a0ecc77b0c
commit 750864290f

View File

@@ -25,7 +25,9 @@ class AltoRouter {
*/ */
public function map($method, $route, $target, $name = null) { 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); $this->routes[] = array($method, $route, $target, $name);