Fetching all tasks from GET /tasks using Angular controller