title: Zend_Rest_Route for a specific controller
body: <p>I'm trying to make a Zend_Rest_Route for a specific controller. I want the rest of my site to behave normally, except when a particular Controller (UploadAPI) is requested. I think the sytnax should be as follow, but having a hard time verifying. The examples all have to do with modules, but I don't have a module.
  Is this correct? </p>
  
  <pre><code>protected function _initRestRoute() {
      $this-&gt;bootstrap('frontController');
      $frontController = Zend_Controller_Front::getInstance();
      $restRoute = new Zend_Rest_Route($frontController, array(), array('default' =&gt; array('UploadAPI'),));
       $frontController-&gt;getRouter()-&gt;addRoute('rest', $restRoute);
  }
  </code></pre>
  
  <p>The link here </p>
  
  <p><a href="http://weierophinney.net/matthew/archives/228-Building-RESTful-Services-with-Zend-Framework.html" rel="nofollow">http://weierophinney.net/matthew/archives/228-Building-RESTful-Services-with-Zend-Framework.html</a></p>
  
  <p>gives examples with modules, but I have no modules, and am assuming "default" is the module name.</p>