Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method to get declared routes? #330

Open
zkwbbr opened this issue Feb 7, 2023 · 0 comments
Open

Method to get declared routes? #330

zkwbbr opened this issue Feb 7, 2023 · 0 comments

Comments

@zkwbbr
Copy link

zkwbbr commented Feb 7, 2023

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant