def decorator(f):
    endpoint = options.pop('endpoint', None)
    self.add_update_rule(rule, endpoint, f, **options)
    return f
def decorator(f):
    endpoint = options.pop('endpoint', None)
    self.add_update_rule(rule, endpoint, f, **options)
    return f