def hook(self, hook_name):
        def wrapper(fn):
            self.register_hook(hook_name, fn)
            return fn
        return wrapper
A decorator that's used to register a new hook handler.
dataset/ETHPy150Open nickfrostatx/flask-hookserver/flask_hookserver.py/Hooks.hook