Plato on Github
Report Home
services/photo.js
Maintainability
73.74
Lines of code
19
Difficulty
4.81
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
'use strict'; /** * @ngdoc service * @name Sns.PhotoViewFactory * @description * # PhotoViewFactory * Factory in the Sns. */ angular.module('SnsApp') .factory('PhotoFactory', ['$resource', function($resource) { return $resource('/api/v1/photos/:photoId', {}, { get: { method: 'GET', params: { photoId: '@photoId' } } }); }]);