Kohana-3.3 routing

63 Views Asked by At

I have problem with routing. My route looks like this:

Route::set('restapi', 'restapi/<version>(/<directory>)/<controller>(.<format>)', array( 'version' => 'v1', 'format' => '(json|xml|csv|html)', )) ->defaults(array( 'format' => 'json', )); And my question is: how my url should looks like? Path for Api: Controller/restapi/api.php Thanks for help.

0

There are 0 best solutions below