diff --git a/module.php b/module.php index 03bc0a1..91f11cf 100644 --- a/module.php +++ b/module.php @@ -39,18 +39,18 @@ public function boot(): void { - // Get the Webtrees router. - $router = app(RouterContainer::class)->getMap(); - - // Retrieve the entire routing table. - $routes = $router->getRoutes(); - - // Delete the original home page route. - unset($routes[HomePage::class]); - $router->setRoutes($routes); - - // Now recreate the home page route and point it to my customized handler. - $router->get(HomePage::class, '/', TreeHomePage::class); + // Get the Webtrees router. + $router = app(RouterContainer::class)->getMap(); + + // Retrieve the entire routing table. + $routes = $router->getRoutes(); + + // Delete the original home page route. + unset($routes[HomePage::class]); + $router->setRoutes($routes); + + // Now recreate the home page route and point it to my customized handler. + $router->get(HomePage::class, '/', TreeHomePage::class); } /**