Plato on Github
Report Home
services/user_follow.js
Maintainability
76.24
Lines of code
26
Difficulty
6.30
Estimated Errors
0.10
Function weight
By Complexity
By SLOC
'use strict'; /** * @ngdoc service * @name Sns.UserFollowFactory * @description * # UserFollowFactory * Factory in the Sns. */ angular.module('SnsApp') .factory('UserUnfollowFactory', ['$resource', function($resource) { return $resource('/api/v1/user_follows/:id', {}, { update: { method: 'delete', params: { id: '@id' } } }); }]) .factory('UserFollowFactory', ['$resource', function($resource) { return $resource('/api/v1/user_follows', {}, { create: { method: 'POST', } }); }]);