feature: idk
This commit is contained in:
		
					parent
					
						
							
								28810c6910
							
						
					
				
			
			
				commit
				
					
						7ba799eab1
					
				
			
		
					 11 changed files with 410 additions and 8 deletions
				
			
		|  | @ -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'); | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue