Added createTeam method in the endpoint