route
route copied to clipboard
Method to get declared routes?
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)