[#61356510] refactor client controller to use $resource