1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-03 14:24:23 +01:00
fab-manager/app/assets/javascripts/services/member.coffee

17 lines
364 B
CoffeeScript
Raw Normal View History

2015-05-05 03:10:25 +02:00
'use strict'
Application.Services.factory 'Member', ["$resource", ($resource)->
$resource "/api/members/:id",
{id: "@id"},
2016-03-23 18:39:41 +01:00
update:
method: 'PUT'
2015-05-05 03:10:25 +02:00
lastSubscribed:
method: 'GET'
url: '/api/last_subscribed/:limit'
params: {limit: "@limit"}
isArray: true
2016-03-23 18:39:41 +01:00
merge:
method: 'PUT'
url: '/api/members/:id/merge'
2015-05-05 03:10:25 +02:00
]