Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. @app.route('/api/help', methods = ['GET'])
  2. def help():
  3. """Print available functions."""
  4. func_list = {}
  5. for rule in app.url_map.iter_rules():
  6. if rule.endpoint != 'static':
  7. func_list[rule.rule] = app.view_functions[rule.endpoint].__doc__
  8. return jsonify(func_list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement