feature: Gernerate Controller
Autogenerate Controller
This commit is contained in:
parent
95a88d5b52
commit
556d3cee7c
19
src/Controller/PrinterCrudController.php
Normal file
19
src/Controller/PrinterCrudController.php
Normal file
@ -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',
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user