Add get task endpoint