Hello , so can anyone help me ? I want to make a second param optional in my routes , is that possible ? Example :
/test/create/
optional trailing id: /test/modify/1234
My current route is :
$router->add("/test/{method:(create|modify|remove)}", [
'controller' => 'index',
'action' => 'web',
]);