title: Kohana 3.3 RESTful API routing error
body: <p>I am having problems setting up an RESTful API with Kohana 3.3. I have added the following module (branch 3.3/release/v2.0), <a href="https://github.com/michal-m/kohana-modules-restful" rel="nofollow">https://github.com/michal-m/kohana-modules-restful</a>, to my bootstrap.</p>
  
  <pre><code>Kohana::modules(array(
      'restful' =&gt; MODPATH.'restful'
  ));
  </code></pre>
  
  <p>I've created a new controller, <code>Controller_Api</code> which extends <code>RESTful_Controller</code> and has <code>get</code>, <code>update</code>, <code>create</code>, <code>delete</code> actions. In my routes file I have:</p>
  
  <pre><code>Route::set('api', '(&lt;controller&gt;(/&lt;action&gt;(/&lt;id&gt;)))')
      -&gt;defaults(array(
          'controller' =&gt; 'api',
          'action'     =&gt; 'index'
  ));
  </code></pre>
  
  <p>But the problem I'm having is when I go to: <a href="http://example.com/api/user/1" rel="nofollow">http://example.com/api/user/1</a></p>
  
  <p>I get the following error which indicates my route is wrong but I can't work it out:</p>
  
  <p><code>Kohana_HTTP_Exception [ 404 ]: Unable to find a route to match the URI: api/user/1</code></p>