AltoRouter v1.0.1 Release Notes

Release Date: 2014-01-23 // about 10 years ago
  • โž• 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.