Created
February 25, 2016 16:22
-
-
Save debovis/16c0f4804bbfd6780b7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with app.app_context(): | |
output = [] | |
for rule in app.url_map.iter_rules(): | |
methods = ','.join(rule.methods) | |
line = urllib.unquote("{:50s} {:20s} {}".format(rule.endpoint, methods, rule)) | |
output.append(line) | |
for line in sorted(output): | |
print line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment