Plato on Github
Report Home
services/users_settings.js
Maintainability
62.03
Lines of code
31
Difficulty
6.65
Estimated Errors
0.10
Function weight
By Complexity
By SLOC
'use strict'; /** * @ngdoc service * @name SnsApp.userProfile * @description * # userProfile * Factory in the SnsApp. */ angular.module('SnsApp') .factory('userSettings', ['$resource', function($resource) { return $resource('/api/v1/users/:id', {}, { update: { method: 'PUT', params: { id: '@id' } }, get: { method: 'GET', params: { id: '@id' } }, delete: { method: 'delete', params: { id: '@id' } } }); }]);