1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-01 23:29:23 +01:00

43 lines
909 B
JavaScript
Raw Normal View History

/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
'use strict';
2015-05-05 03:10:25 +02:00
Application.Services.factory('Member', ["$resource", $resource=>
$resource("/api/members/:id",
{id: "@id"}, {
update: {
2016-03-23 18:39:41 +01:00
method: 'PUT'
},
lastSubscribed: {
method: 'GET',
url: '/api/last_subscribed/:limit',
params: {limit: "@limit"},
2015-05-05 03:10:25 +02:00
isArray: true
},
merge: {
method: 'PUT',
2016-03-23 18:39:41 +01:00
url: '/api/members/:id/merge'
},
list: {
url: '/api/members/list',
method: 'POST',
2016-05-30 15:39:19 +02:00
isArray: true
},
search: {
method: 'GET',
url: '/api/members/search/:query',
params: {query: "@query"},
isArray: true
},
mapping: {
method: 'GET',
url: '/api/members/mapping'
}
}
)
]);