route icon indicating copy to clipboard operation
route copied to clipboard

Feature request: map with array of methods

Open ccerrillo opened this issue 3 years ago • 1 comments

I think it would be useful, allow using an array of methods, as it could be done before in 3.x version

ccerrillo avatar Jun 27 '21 20:06 ccerrillo

I like this feature too. Most of the time I have the same route for GET and POST. E.g.,

$router->get('register', Register::class);
$router->post('register', Register::class);

Would be nice if there's something like $router->map(['GET', 'POST'], 'register', Register::class);

zkwbbr avatar Sep 22 '21 12:09 zkwbbr