2018-10-25 16:50:16 +02:00
|
|
|
/*
|
|
|
|
* 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';
|
2016-08-04 14:26:07 +02:00
|
|
|
|
2018-10-25 16:50:16 +02:00
|
|
|
Application.Services.factory('Coupon', ["$resource", $resource=>
|
|
|
|
$resource("/api/coupons/:id",
|
|
|
|
{id: "@id"}, {
|
|
|
|
update: {
|
2016-08-04 14:26:07 +02:00
|
|
|
method: 'PUT'
|
2018-10-25 16:50:16 +02:00
|
|
|
},
|
|
|
|
validate: {
|
|
|
|
method: 'POST',
|
2016-08-08 17:09:05 +02:00
|
|
|
url: '/api/coupons/validate'
|
2018-10-25 16:50:16 +02:00
|
|
|
},
|
|
|
|
send: {
|
|
|
|
method: 'POST',
|
2016-08-16 18:12:13 +02:00
|
|
|
url: '/api/coupons/send'
|
2018-10-25 16:50:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
]);
|