RestController refactoring not working yet because need to convert params (api/leagues) into class (League)