route icon indicating copy to clipboard operation
route copied to clipboard

Method to get declared routes?

Open zkwbbr opened this issue 1 year ago • 0 comments

Is there a away to get all declared routes in the current version (or planned in the next)?

For example, something like this?

$router->get('/foo', Foo::class);
$router->get('/bar', Bar::class);

$result = $router->getRoutes(); // an array of the above (/foo and /bar)

zkwbbr avatar Feb 07 '23 15:02 zkwbbr