So I have it defined as:
/**
* Class TemplateController
* @package TemplateManager\Bundle\DocumentGeneratorBundle\Controller\API
* @Route("/api/v1/templates")
*/
class TemplateController extends Controller
{
/**
* @Route("?available={id}")
* @Method({"GET"})
*/
public function findAllAction($id)
{
echo "Yu";
}
/**
* @Route("/{id}")
* @Method({"GET"})
* @param $id
* @param $template_name
* @return Response
*/
public function findAction($id)
{}
}
When accessing it as: http://localhost/api//v1/templates?available=1
it says no matching route found. Where am I doing wrong? The other route works fine.