Created
September 25, 2012 18:52
-
-
Save weierophinney/3783719 to your computer and use it in GitHub Desktop.
Alternate config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| return array( | |
| 'router' => array('routes' => array( | |
| 'api' => array( | |
| 'type' => 'Segment', | |
| 'options' => array( | |
| 'route' => '/api/v1/:controller[/:id]', | |
| 'defaults' => array( | |
| '__NAMESPACE__' => 'Api\V1\Controller', | |
| 'controller' => 'User', // just an example | |
| ), | |
| ), | |
| ), | |
| )), | |
| 'controllers' => array( | |
| 'invokables' => array( | |
| 'Api\V1\Controller\User' => 'Api\Controller\UserController', | |
| 'Api\V1\Controller\Group' => 'Api\Controller\GroupController', | |
| // etc. | |
| ), | |
| ), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment