code: def get_url_mappings(self, rule_filter=None):
          
          rule_filter = rule_filter or (lambda rule: True)
          app_rules = [
              rule for rule in current_app.url_map.iter_rules()
              if rule_filter(rule)
          ]
          return app_rules
docs: Returns all werkzeug rules