1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/app/assets/javascripts/services/project.coffee

19 lines
431 B
CoffeeScript
Raw Normal View History

2015-05-05 03:10:25 +02:00
'use strict'
Application.Services.factory 'Project', ["$resource", ($resource)->
$resource "/api/projects/:id",
{id: "@id"},
lastPublished:
method: 'GET'
url: '/api/projects/last_published'
isArray: true
2016-03-23 18:39:41 +01:00
search:
method: 'GET'
url: '/api/projects/search'
isArray: false
allowedExtensions:
method: 'GET'
url: '/api/projects/allowed_extensions'
isArray: true
2015-05-05 03:10:25 +02:00
]