Plato on Github
Report Home
services/photo_comments.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.photocommentFactory * @description * # photoCommentFactory * Factory in the Sns. */ angular.module('SnsApp') .factory('photoCommentFactory', ['$resource', function($resource) { return $resource('/api/v1/photos/:id/photo_comments', {}, { get: { method: 'GET', params: { id: '@id' } } }); }]) .factory('PhotoCommentSaveFactory', ['$resource', function($resource) { return $resource('/api/v1/photo_comments', {}, { create: { method: 'POST', } }); }]);