Skip to content

Commit

Permalink
merged controller actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Corepex committed May 8, 2024
1 parent 297586c commit fcb90c2
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,15 @@

use Pimcore\Controller\FrontendController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;


final class DefaultController extends FrontendController
{
/**
* @Route("/")
*/
#[Route('/')]
#[Route('/login')]
public function indexAction(): Response
{
return $this->render('@PimcoreStudioUi/default/index.html.twig');
}

/**
* @Route("/{any}", requirements={"any"=".+"})
*/
public function catchAllAction(): Response
{
return $this->render('@PimcoreStudioUi/default/index.html.twig');
}
}

0 comments on commit fcb90c2

Please sign in to comment.