Skip to content

Commit

Permalink
Add route attribute on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane MEAUDRE committed Mar 22, 2024
1 parent 6ad0ee5 commit 60e2ebe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/Controller/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Attribute\Route;

class Home extends AbstractController
{
#[Route(path: '/', name: 'home')]
public function __invoke(Request $request, string $apiDocUrl): RedirectResponse
{
return $this->redirect($apiDocUrl);
Expand Down

0 comments on commit 60e2ebe

Please sign in to comment.