Writing custom actuator endpoints