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
|
2016-06-14 09:57:39 +02:00
|
|
|
search:
|
|
|
|
method: 'GET'
|
2016-06-16 14:26:10 +02:00
|
|
|
url: '/api/members/search/:query'
|
|
|
|
params: {query: "@query"}
|
2016-06-14 09:57:39 +02:00
|
|
|
isArray: true
|
2015-05-05 03:10:25 +02:00
|
|
|
]
|