1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-02 13:24:20 +01:00
fab-manager/app/assets/javascripts/services/member.coffee
2016-03-23 18:39:41 +01:00

17 lines
364 B
CoffeeScript

'use strict'
Application.Services.factory 'Member', ["$resource", ($resource)->
$resource "/api/members/:id",
{id: "@id"},
update:
method: 'PUT'
lastSubscribed:
method: 'GET'
url: '/api/last_subscribed/:limit'
params: {limit: "@limit"}
isArray: true
merge:
method: 'PUT'
url: '/api/members/:id/merge'
]