I need to match some different routes to aim the same page.
E.g.: / , /inicio, /home -> must show the landing page
$app->get('/', function () use ($app) {
return $app['twig']->render(
'home.html.twig',
array(
'page' => 'home'
)
);
})
->bind('home');
And I'd like to avoid the same for each route. I'd like to do something like
$app->match('/|/home|/inicio, function() use ($app) {} );