1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/assets/javascripts/services/coupon.coffee
2016-08-16 18:12:13 +02:00

15 lines
296 B
CoffeeScript

'use strict'
Application.Services.factory 'Coupon', ["$resource", ($resource)->
$resource "/api/coupons/:id",
{id: "@id"},
update:
method: 'PUT'
validate:
method: 'POST'
url: '/api/coupons/validate'
send:
method: 'POST'
url: '/api/coupons/send'
]