mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-03-17 22:51:04 +01:00
Mise à jour de PHP Correction des entitées from attributes to annotations Ajout des entitées des objets 3D
23 lines
622 B
PHP
23 lines
622 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
use App\Repository\SiteRepository;
|
|
|
|
class MapApiController extends AbstractController
|
|
{
|
|
#[Route('/map/api')]
|
|
public function index(SiteRepository $srep): JsonResponse
|
|
{
|
|
|
|
return $this->json([
|
|
'message' => 'Welcome to your new controller!',
|
|
'path' => 'src/Controller/MapApiController.php',
|
|
'sites' => $srep->allSites()[0]->getZeroLatitude()
|
|
]);
|
|
}
|
|
}
|