I was trying to create a route type "any" to allow both get
and post
but it did not work so I tried adding two routes to my route annotation like this
/**
* @Route("/news", name="newsSinglePOST", methods={"post"})
* @Route("/news", name="newsSingleGET", methods={"get"})
* @return \Symfony\Component\HttpFoundation\Response
*/
That did not work either but then I tried deleting one but the route is now unusable, the controller does says something about a missing return statement and in my router I have the following line:
newsGet ANY ANY ANY /news
to get my controller working again I had to change /news
to news2
so this route is now somehow unusable
I tried clearing the dev cache without success
So my question is how can I recover my route /news
?