title: How to exclude an api route from symfony2 firewall based on method
body: <p>So i am building a symfony2 api using fosrestbundle fosuserbundle and LexikJWTAuthenticationBundle and when i want to acces to /api/users.json to post a new user i get a 401 error Bad Credentials.</p>
  
  <p>i tried to add a line in access control this way :</p>
  
  <pre><code>- { path: post_user, role: IS_AUTHENTICATED_ANONYMOUSLY }   
  </code></pre>
  
  <p>but it didn't work.</p>
  
  <p>i also tried :</p>
  
  <pre><code>- { path: post_user, role: IS_AUTHENTICATED_ANONYMOUSLY, methods:[POST] }   
  </code></pre>
  
  <p>how can i exclude only the post endpoint ?</p>