def add_update_rule(self, rule, endpoint=None, view_func=None, **options):
    self.update_rules.append(dict(rule=re.compile(rule), endpoint=endpoint, view_func=view_func, options=dict(**options)))
def add_update_rule(self, rule, endpoint=None, view_func=None, **options):
    self.update_rules.append(dict(rule=re.compile(rule), endpoint=endpoint, view_func=view_func, options=dict(**options)))