def wraps(function):
    """Enables building decorators around functions used for hug routes without changing their function signature"""
    def wrap(decorator):
        decorator = functools.wraps(function)(decorator)
        if not hasattr(function, 'original'):
            decorator.original = function
        else:
            decorator.original = function.original
            delattr(function, 'original')
        return decorator
    return wrap
Enables building decorators around functions used for hug routes without changing their function signature