Sha256: e25327386fa2e5fba8208519b2ab4d4b3c492ae56e2d40975a5447523a0a37a3
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
services.factory('Keys', ['$resource', function($resource) { return $resource(window.basePath + '/api/keys.json', {}, { 'get': { method: 'GET', isArray:true }, 'save': { method: 'POST' }, 'update': { method: 'PUT' } }); }]); services.factory('Key', ['$resource', function($resource) { return $resource(window.basePath + '/api/keys/:key.json', { key: '@key' }, { 'find': { method: 'GET' }, 'delete': { method: 'DELETE' } }); }]); services.factory('Stats', ['$resource', function($resource) { return $resource(window.basePath + '/api/stats.json', {}, { 'all': { method: 'GET' } }); }]); services.factory('Configs', ['$resource', function($resource) { return $resource(window.basePath + '/api/config.json', {}, { 'get': { method: 'GET' }, 'update':{ method: 'POST' } }); }]); services.factory('Connection', ['$resource', function($resource) { return $resource(window.basePath + '/api/status.json', {}, { 'get': { method: 'GET' }, }); }]);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
memcached-manager-1.0.0 | lib/public/javascripts/angular/services/resources.js |