mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
18 lines
380 B
JavaScript
18 lines
380 B
JavaScript
'use strict';
|
|
|
|
Application.Services.factory('ICalendar', ['$resource', function ($resource) {
|
|
return $resource('/api/i_calendar/:id',
|
|
{ id: '@id' }, {
|
|
events: {
|
|
method: 'GET',
|
|
url: '/api/i_calendar/:id/events'
|
|
},
|
|
sync: {
|
|
method: 'POST',
|
|
url: '/api/i_calendar/:id/sync',
|
|
params: { id: '@id' }
|
|
}
|
|
}
|
|
);
|
|
}]);
|