Refactor get/:id for ng-resource