adding possibility to update the informations of a book (title, etc.) and handle 'idBook' parameters in Slide urls to send back only the slides of a book (will replace BooksSlides)
(function(){
'use strict';
angular.module('ammicoModels', ['ngRoute'])
.factory('Book', function($resource, context) {
var books = $resource(context.urls.ammicoUrl+'/books/:idBook', {idBook:'@id'});
//return $resource('/api/posts/:id');
return books;
})
.factory('Slide', function($resource, context) {
return $resource(context.urls.ammicoUrl+'/slides/:idSlide', {idSlide:'@id'});
//return $resource('/api/posts/:id');
});
})();