code: public function get($alias): JsonResponse
      {
          $alias = str_replace('/', '.', $alias);
  
          try {
              $status = $this->healthService->check($alias);
          } catch (InvalidAliasException $exception) {
              throw new NotFoundHttpException('Health alias not found.', $exception);
          }
  
          $data = $status->toObject();
          $data->timestamp = $data->timestamp->format(static::TIMESTAMP_FORMAT);
          unset($data->alias);
  
          return new JsonResponse($data, Response::HTTP_OK, [
              'Content-Type' => 'application/json; charset=utf-8'
          ]);
      }
docs: Action
  
  @Route(path="/health/{alias}", requirements={"alias"=".+"}, methods={"GET"})
  @param string $alias
  @return \Symfony\Component\HttpFoundation\JsonResponse