code: def app_routes(app):
      
      _routes = []
      for rule in app.url_map.iter_rules():
          _routes.append({
              'path': rule.rule,
              'name': rule.endpoint,
              'methods': list(rule.methods)
          })
      return jsonify({'routes': _routes})
docs: list of route of an app