Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement