All registered URLs
opened this issue · comments
Deleted user commented
Submitting...
- Bug
- Feature
- Question
- Documentation issue
Feature:
A method to get all registered URLs.
I already implemented something based on the Source Code I've read.
def all_urls():
return list(map(str, state('__main__').url_map.iter_rules()))
Daniel Däschle commented
Just use state(__name__).routes.keys()
??
Deleted user commented
Make it easier accesible?
Daniel Däschle commented
All routes isn't something which is important often. Why it should be accessable with routes() (.keys())
instead of state(__name__).routes (.keys())
?