1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-30 11:24:21 +01:00
fab-manager/app/assets/javascripts/services/member.coffee

29 lines
637 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'
2016-05-30 15:39:19 +02:00
list:
url: '/api/members/list'
method: 'POST'
isArray: true
search:
method: 'GET'
url: '/api/members/search/:query'
params: {query: "@query"}
isArray: true
mapping:
method: 'GET'
url: '/api/members/mapping'
2015-05-05 03:10:25 +02:00
]