Skip to content

Version 1.0.1

Compare
Choose a tag to compare
@koenpunt koenpunt released this 23 Jan 14:07

Added support for custom match types:

$router = new AltoRouter();
$router->addMatchTypes(array('cId' => '[a-zA-Z]{2}[0-9](?:_[0-9]++)?'));

$router->map('GET', '/users/[cId:id]', 'customers#show', 'customers_show');

Fixed some bugs:

  • #38 #20 When a basePath is set, the custom route is not being checked against because the first character is not an @. (Fixed in 01258d1)
  • #22 A . was not seen as path separator for optional parts. (Fixed in #35)

View all changes since v1.0.0.