mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
12 lines
234 B
CoffeeScript
12 lines
234 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'
|
|
]
|