I have a new symfony 4.4 project with api platform installed (via composer require api) and reactJs with Webpack Encore. I can't display Api platform (127.0.0.1:8000/api) view when i have the
@Route("/{reactRouting}", name="home", defaults={"reactRouting": null})
inside my DefaultController.php :
class DefaultController extends AbstractController {
/**
* @Route("/{reactRouting}", name="home", defaults={"reactRouting": null})
*/
public function index()
{
return $this->render('default/index.html.twig');
}
But when i remove it i can access /api but i can't access my route from react (/login etc).