Fixed getTeam method (endpoint)