add a token field to the initialisation of the ammico app so the server can pass it and auto login with jwt
(function(){
'use strict';
angular.module('ammicoSlideshow',['ngResource', 'ngRoute', 'ui.bootstrap', 'ngTouch'])
.controller('slideshowCtrl', function($scope, $routeParams, Slide, Book, Utils){
$scope.slides = Slide.query({idBook:$routeParams.iSlide, format:'json'}, function(data){
data.forEach(function(slide){
slide = Utils.sanitizeUrls(slide);
});
});
$scope.book = Book.get({idBook:$routeParams.iSlide, format:'json'});
});
})();