src/Controller/Api/DefaultController.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Api;
  3. use Symfony\Component\Routing\Annotation\Route;
  4. use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  5. use Symfony\Component\HttpFoundation\Request;
  6. class DefaultController extends Controller
  7. {
  8.     /**
  9.      * @Route("/", name="homepage")
  10.      */
  11.     public function indexAction(Request $request)
  12.     {
  13.         // replace this example code with whatever you need
  14.         return $this->render('default/index.html.twig', [
  15.             'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'),
  16.         ]);
  17.     }
  18. }