1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/app/assets/javascripts/services/icalendar.js

18 lines
380 B
JavaScript
Raw Normal View History

2019-11-27 17:05:19 +01:00
'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'
2019-12-02 12:19:30 +01:00
},
sync: {
method: 'POST',
url: '/api/i_calendar/:id/sync',
params: { id: '@id' }
2019-11-27 17:05:19 +01:00
}
}
);
}]);