feature: idk

This commit is contained in:
Jan Klattenhoff 2024-01-18 13:39:10 +01:00
parent 28810c6910
commit 7ba799eab1
11 changed files with 410 additions and 8 deletions

View file

@ -4,16 +4,14 @@ namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class FrontendController extends AbstractController
{
#[Route('/frontend', name: 'app_frontend')]
public function index(): JsonResponse
#[Route('/', name: 'app_frontend')]
public function index(): Response
{
return $this->json([
'message' => 'Welcome to your new controller!',
'path' => 'src/Controller/FrontendController.php',
]);
return $this->render('frontend/index.html.twig');
}
}