Initial commit

This commit is contained in:
2024-11-13 19:34:30 +01:00
parent 53b43eddb1
commit 015fc0ea94
16 changed files with 2164 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Controller;
use App\Entity\Site;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Attribute\Route;
class SiteController extends AbstractController
{
#[Route('/site/{id<\d+>}', name: 'app_site')]
public function index(Site $site): JsonResponse
{
return $this->json([
'message' => 'Request successful',
'site' => $site,
]);
}
}