Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

0.4.0

Compare
Choose a tag to compare
@yaworsw yaworsw released this 04 Apr 00:45
· 27 commits to master since this release
  • New syntax for defining routes (#23)

Example

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