diff --git a/misc/images/hydra-sql-kube/Dockerfile b/misc/images/hydra-sql-base/Dockerfile similarity index 100% rename from misc/images/hydra-sql-kube/Dockerfile rename to misc/images/hydra-sql-base/Dockerfile diff --git a/src/Controller/MainController.php b/src/Controller/MainController.php index 9dc1ff3..fd89544 100644 --- a/src/Controller/MainController.php +++ b/src/Controller/MainController.php @@ -8,6 +8,7 @@ use App\Hydra\HydraService; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\Routing\Annotation\Route; @@ -30,6 +31,12 @@ class MainController extends AbstractController return $this->hydra->handleLoginRequest($request); } + #[Route('/health', name: 'health')] + public function health() + { + return new Response('healthy', 200); + } + #[Route('/connect/login-accept', name: 'app_login_accept')] public function loginAccept(Request $request) {