endpoint for getting the tasks on a slave.