Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Changed Zepto\Router to use regex patterns in routing table rathe…
Browse files Browse the repository at this point in the history
…r than URLs
  • Loading branch information
hassankhan committed Jan 29, 2014
1 parent 23218ec commit 39c092a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zepto/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ protected function route(Route $route, $http_method = 'GET')
}

// Add the route to the routing array
$this->routes[$http_method][$route->get_url()] = $route;
$this->routes[$http_method][$route->get_pattern()] = $route;

return true;
}
Expand Down

0 comments on commit 39c092a

Please sign in to comment.