@app.route('/api/help', methods = ['GET'])
def help():
"""Print available functions."""
func_list = {}
for rule in app.url_map.iter_rules():
if rule.endpoint != 'static':
func_list[rule.rule] = app.view_functions[rule.endpoint].__doc__
return jsonify(func_list)
Created
June 7, 2015 05:29
-
-
Save lozadaOmr/3d3990d14b40e16f928b to your computer and use it in GitHub Desktop.
Displays all routes source: http://stackoverflow.com/questions/13317536/get-a-list-of-all-routes-defined-in-the-app
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment