Hi I have the following api url
http://localhost/apiworks/index.php/api/posts
how this url is managed(which controller, action) in the following code?
actually how this is working?
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
// REST patterns
array('api/list', 'pattern'=>'api/<model:\w+>', 'verb'=>'GET'),
array('api/view', 'pattern'=>'api/<model:\w+>/<id:\d+>', 'verb'=>'GET'),
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),