Skip to content

Instantly share code, notes, and snippets.

@debovis
Created February 25, 2016 16:22
Show Gist options
  • Save debovis/16c0f4804bbfd6780b7a to your computer and use it in GitHub Desktop.
Save debovis/16c0f4804bbfd6780b7a to your computer and use it in GitHub Desktop.
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