I'm using zend-expressive (3) to build my REST APIs. The file config/routes.php contains my routes, e.g.
return function (Application $app, MiddlewareFactory $factory, ContainerInterface $container) : void {
$app->get('/', Start\HomePageHandler::class, 'home');
$app->get('/api/ping', Start\PingHandler::class, 'api.ping');
};
Every new module adds a lot of new routes. This gets confusing. Is there a way to split the route configuration into multiple files?