1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-11 00:52:29 +01:00
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'
]