Skip to content

Commit

Permalink
Update ListController.php (#271)
Browse files Browse the repository at this point in the history
Redirect "region route" to list.
Close #189
  • Loading branch information
jbelien authored Dec 12, 2021
1 parent 31a9b55 commit 6fbcbc6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Controller/App/ListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ public function __construct(
) {
}

#[Route('/{regionKey}', name: 'app_region')]
public function redirectToList(string $regionKey): Response
{
return $this->redirectToRoute('app_list', ['regionKey' => $regionKey]);
}

#[Route('/{regionKey}/list/{year}/{month}', name: 'app_list')]
public function index(string $regionKey, ?int $year = null, ?int $month = null): Response
{
Expand Down

0 comments on commit 6fbcbc6

Please sign in to comment.