router
router copied to clipboard
way to dynamically get all defined routes?
Is there a method to get all of the routes that have been defined?
Apparently no. You can either extend Bramus and inpmement a getter method yourself (getAfterRoutes or something), or you can make a pull request. Maybe you could add a specific usecase why this might be usefull :)
The use case I see would be if you wanted to use an endpoint that lists all endpoints, like an API index.
https://github.com/bramus/router/pull/163#issuecomment-968303768