diff --git a/config/routing/2_api.yaml b/config/routing/2_api.yaml index 1fa121e8..e79774f1 100644 --- a/config/routing/2_api.yaml +++ b/config/routing/2_api.yaml @@ -80,14 +80,6 @@ api_station: requirements: stationCode: '^([A-Z]{2,6})([A-Z0-9]{0,8})$' -api_station_analysis: - path: /api/{stationCode}/analysis - methods: GET - defaults: - _controller: App\Controller\Api\AnalysisApiController::stationAnalysisAction - requirements: - stationCode: '^([A-Z]{4,6})([0-9]{1,5})$' - api_display: path: /api methods: GET diff --git a/src/Controller/Api/AnalysisApiController.php b/src/Controller/Api/AnalysisApiController.php deleted file mode 100644 index 766de405..00000000 --- a/src/Controller/Api/AnalysisApiController.php +++ /dev/null @@ -1,23 +0,0 @@ -managerRegistry->getRepository(Station::class)->findOneByStationCode($stationCode); - - if (!$station) { - throw $this->createNotFoundException(); - } - - $valueList = $this->managerRegistry->getRepository(Data::class)->findForAnalysis($station, 1); - - return new JsonResponse($this->serializer->serialize($valueList), Response::HTTP_OK, [], true); - } -}