Reputation: 91
I can't for the life of me get this route to work:
/***
* @Route("/load_base_data/{projectId}", name="load_base_data", methods={"GET"})
* @return Response
*/
public function loadBaseMeasures(int $projectId, DataLoadService $dataLoadService, ApiService $apiService)
{
$response = $apiService->initResponse();
$dataLoadService->generateFiles($projectId);
return new JsonResponse($response);
}
I've tried php bin/console debug:router and it doesn't show up on the list. I've tried php bin/console cache:clear
This is the only route I'm having trouble with.
Upvotes: 2
Views: 2284
Reputation: 91
Cerad was right, the problem was the /***
. Changed to /**
and it worked. Thanks!
Upvotes: 1