feature: Gernerate Controller

Autogenerate Controller
This commit is contained in:
Jan Klattenhoff 2024-01-17 15:45:39 +01:00
parent 95a88d5b52
commit 556d3cee7c

@ -0,0 +1,19 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Annotation\Route;
class PrinterCrudController extends AbstractController
{
#[Route('/printer/crud', name: 'app_printer_crud')]
public function index(): JsonResponse
{
return $this->json([
'message' => 'Welcome to your new controller!',
'path' => 'src/Controller/PrinterCrudController.php',
]);
}
}