Hey guys. Wondering if there's already something for this that I'm overlooking. For times when you have the singular and pluralizes paths take the same action, is there a way of combing these in one call? Currently I declare the routine as a function then make two separate path declarations. I'd love to do something like this:
$router->get(array('/User','/Users'), function ()......);
Hey guys. Wondering if there's already something for this that I'm overlooking. For times when you have the singular and pluralizes paths take the same action, is there a way of combing these in one call? Currently I declare the routine as a function then make two separate path declarations. I'd love to do something like this: