title: FOSJsRoutingBundle - The route "xxx" does not exist
body: <p>I'm using fosJsRouting to generate routes for my ajax calls. </p>
  
  <p>OS: Ubuntu 16.04 + nginx + php 7</p>
  
  <pre><code>app/Kernel.php
      public function registerBundles()
      {
          $bundles = array(
              new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
              );
  </code></pre>
  
  <p>And the config...</p>
  
  <pre><code>app/config/config.yml
  fos_js_routing:
      resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"
  
  fos_user:
      resource: "@FOSUserBundle/Resources/config/routing/all.xml"
  app:
      resource: "@AppBundle/Controller/"
      type:     annotation
  </code></pre>
  
  <p>This is the bundle routing</p>
  
  <pre><code>pablo_user_getonline:
      path:     user/getonline
      defaults: { _controller: pabloUserBundle:User:getonline }
      methods:  [POST,GET]
      options: { expose: true }
  </code></pre>
  
  <p>The Js:</p>
  
  <pre><code>$(document).ready(function(){
          $.ajax({
              url: "pablo_user_getonline",
              method: "POST",
              data:[],
              success: function (result) {
  
                  $('#delete-progress').addClass('hidden');
  
                  if(result.data == 1)
                  {
                      alert("Status changed");
                  }
                  else
                  {
                      $('#message-danger').removeClass('hidden');
  
                      $('#user-message-danger').text(result.message);
                  }
              }}).fail(function(){
              alert('ERROR');
          });
  });
  </code></pre>
  
  <p>And the layout...</p>
  
  <pre><code>{% block javascripts %}
  &lt;script src="{{ asset('public/js/jquery-3.1.0.min.js') }}"&gt;&lt;/script&gt;
  &lt;script src="{{ asset('public/js/bootstrap.min.js') }}"&gt;&lt;/script&gt;
  &lt;script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"&gt;&lt;/script&gt;
  &lt;script src="{{ asset('bundles/pablouser/js/bootbox.min.js') }}"&gt;&lt;/script&gt;
  &lt;script src="{{ asset('bundles/pablouser/js/set-online.js') }}"&gt;&lt;/script&gt;
  &lt;script src="{{ asset('bundles/pablouser/js/get-online.js') }}"&gt;&lt;/script&gt;
  &lt;script src="{{ asset('bundles/pablouser/js/noty/packaged/jquery.noty.packaged.min.js') }}"&gt;&lt;/script&gt;
  &lt;script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"&gt;&lt;/script&gt;
  {% endblock %}
  </code></pre>
  
  <p>When i run app/console fos:js-routing:debug get this:</p>
  
  <pre><code>+------------------------------+-------------+--------+------+------------------------------+
  | Name                         | Method      | Scheme | Host | Path                         |
  +------------------------------+-------------+--------+------+------------------------------+
  | pablo_user_getonline         | POST|GET    | ANY    | ANY  | /user/getonline              |
  | pablo_user_setonline         | POST        | ANY    | ANY  | /user/setonline              |
  | pablo_publication_index      | ANY         | ANY    | ANY  | /publication/index           |
  | pablo_publication_delete     | POST|DELETE | ANY    | ANY  | /publication/delete/{id}     |
  | pablo_publication_seoprocess | POST        | ANY    | ANY  | /publication/seoprocess/{id} |
  | get_domain_info_ajax         | POST        | ANY    | ANY  | /getAjaxDomainInfo           |
  | register_domain              | POST        | ANY    | ANY  | /registerDomain              |
  +------------------------------+-------------+--------+------+------------------------------+
  </code></pre>
  
  <p>Anyone of this routes are found when Routing.generate.</p>
  
  <p>I've been looking around to find a solution so i tried to:</p>
  
  <ul>
  <li>set options to expose = true</li>
  <li>Add this routes to expose into the app/config/config.yml</li>
  <li>Symfony cache is clear</li>
  <li>Assets are all installed.</li>
  </ul>