- Converted to Angular.js resource usage