issue-14: modification Dockerfile + structure k8S (à compléter) #15

Closed
rmasson wants to merge 5 commits from issue-14 into develop
2 changed files with 7 additions and 0 deletions
Showing only changes of commit 9abc04fd25 - Show all commits

View File

@ -8,6 +8,7 @@ use App\Hydra\HydraService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Routing\Annotation\Route;
@ -30,6 +31,12 @@ class MainController extends AbstractController
return $this->hydra->handleLoginRequest($request); 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')] #[Route('/connect/login-accept', name: 'app_login_accept')]
public function loginAccept(Request $request) public function loginAccept(Request $request)
{ {