1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/assets/javascripts/services/event.coffee

14 lines
289 B
CoffeeScript
Raw Normal View History

2015-05-05 03:10:25 +02:00
'use strict'
Application.Services.factory 'Event', ["$resource", ($resource)->
$resource "/api/events/:id",
{id: "@id"},
update:
method: 'PUT'
upcoming:
method: 'GET'
url: '/api/events/upcoming/:limit'
params: {limit: "@limit"}
isArray: true
]