1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/assets/javascripts/services/training.coffee

12 lines
255 B
CoffeeScript

'use strict'
Application.Services.factory 'Training', ["$resource", ($resource)->
$resource "/api/trainings/:id",
{id: "@id"},
update:
method: 'PUT'
availabilities:
method: 'GET'
url: "/api/trainings/:id/availabilities"
]