def get_url_mappings(self, rule_filter=None):
        """
        Returns all werkzeug rules
        """
        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
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
Returns all werkzeug rules