fortrabbit/slimcontroller — pull request #19 by yaworsw (2014-01-08 15:10:37+00:00)
Title: Better RESTful routing

Changed how http methods are defined in the router. Http methods are now defined like this:

$app->addRoutes(array(
'/' => 'Home:index',
'get /posts' => 'Posts:index',
'get /posts/:id' => 'Posts:show',
'post /posts' => array('Posts:create', function() { echo 'Middleware!'; }),
...
));