1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-10 21:24:20 +01:00
fab-manager/app/assets/javascripts/services/project.coffee
2016-04-22 18:17:55 +02:00

15 lines
322 B
CoffeeScript

'use strict'
Application.Services.factory 'Project', ["$resource", ($resource)->
$resource "/api/projects/:id",
{id: "@id"},
lastPublished:
method: 'GET'
url: '/api/projects/last_published'
isArray: true
search:
method: 'GET'
url: '/api/projects/search'
isArray: false
]