@classmethod
def _add_decorators(cls, func, get_attribute):
    """
        Adds the custom route decorators from the `decorators` class attribute to the route.

        Arguments:
            func: The decorated request handler function.
            get_attribute: Attribute getter function to use.
        """
    decorators = get_attribute(cls, 'decorators', None)
    if decorators is not None:
        for decorator in reversed(decorators):
            func = decorator(func)
    return func
