Sha256: d68da8eb5d2b8612ab13589c6f4dbab33986669bfb380b83e2c4b8ac14737efd

Contents?: true

Size: 911 Bytes

Versions: 5

Compression:

Stored size: 911 Bytes

Contents

'use strict';

angular.module('simplePvrServices', ['ngResource']).
factory('UpcomingRecording', function($resource) {
	return $resource('/api/upcoming_recordings/:id');
}).
factory('Schedule', function($resource) {
	return $resource('/api/schedules/:id', {id: '@id'});
}).
factory('Channel', function($resource) {
	return $resource('/api/channels/:id', {id: '@id'});
}).
factory('ProgrammeListing', function($resource) {
	return $resource('/api/channels/:channelId/programme_listings/:date');
}).
factory('Programme', function($resource) {
	return $resource('/api/programmes/:id');
}).
factory('Show', function($resource) {
	return $resource('/api/shows/:id', {id: '@id'});
}).
factory('Recording', function($resource) {
	return $resource('/api/shows/:showId/recordings/:recordingId', {showId: '@show_id', recordingId: '@id'});
}).
factory('Status', function($resource) {
	return $resource('/api/status');
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_pvr-1.0.0 public/js/services.js
simple_pvr-0.0.4 public/js/services.js
simple_pvr-0.0.3 public/js/services.js
simple_pvr-0.0.2 public/js/services.js
simple_pvr-0.0.1 public/js/services.js