Sketch out protected_endpoint decorator