Registers a method on an Object as a CLI route

def cli(self, method):
        """Registers a method on an Object as a CLI route"""
        routes = getattr(method, '_hug_cli_routes', [])
        routes.append(self.route)
        method._hug_cli_routes = routes
        return method