19 lines
536 B
PHP
19 lines
536 B
PHP
<?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',
|
|
]);
|
|
}
|
|
}
|