1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/app/assets/javascripts/services/coupon.coffee

15 lines
296 B
CoffeeScript
Raw Normal View History

2016-08-04 14:26:07 +02:00
'use strict'
Application.Services.factory 'Coupon', ["$resource", ($resource)->
$resource "/api/coupons/:id",
{id: "@id"},
update:
method: 'PUT'
validate:
method: 'POST'
url: '/api/coupons/validate'
2016-08-16 18:12:13 +02:00
send:
method: 'POST'
url: '/api/coupons/send'
2016-08-04 14:26:07 +02:00
]