title: Symfony2 + FOS Rest Bundle - Regular route
body: <p>I am developing an application using Symfony2 with fos-restbundle. I would like to create some API routes and also some regular routes (exactly one for AngularJS front-end). This is my fos_rest configuration (and a few configuration lines from sensio):</p>
  
  <p><code>sensio_framework_extra:
      view: { annotations: false }
      router: { annotations: true }
      request: { converters: true }
  fos_rest:
      routing_loader:
          default_format: json
          include_format: true
      param_fetcher_listener: force
      body_listener: true
      allowed_methods_listener: true
      view:
          view_response_listener: 'force'
          formats:
              json: true
              xml: true
      format_listener:
          rules:
              - { path: '^/api', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
      access_denied_listener:
          json: true</code></p>
  
  <p>As you can see i have <strong>view_response_listener</strong> enabled and <strong>view annotations</strong> disabled. I can't find the way to define "regular" (not REST) route (and view) for index action (neccesary for AngularJS). Keep getting an error:</p>
  
  <pre><code>ERROR - Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException: "No matching accepted Response format could be determined" at C:\wamp\www\CRMProject\vendor\friendsofsymfony\rest-bundle\EventListener\FormatListener.php line 69 
  </code></pre>
  
  <p>I would appreciate any help with this.</p>