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('ammicoSlideshow',['ngResource', 'ngRoute', 'ui.bootstrap'])
.controller('slideshowCtrl', function($scope, ammicoApi, $routeParams){
$scope.slideshow = ammicoApi.booksSlides.query({idBook:$routeParams.iSlide, format:'json'}, function(data){
data = ammicoApi.sanitizeUrls(data);
});
$scope.book = ammicoApi.book.get({idBook:$routeParams.iSlide, format:'json'});
});
})();