client/app/app.js
changeset 55 10fd23382e76
parent 54 ccb586464a6f
child 57 388b29d38b44
--- a/client/app/app.js	Thu Apr 02 12:06:51 2015 +0200
+++ b/client/app/app.js	Thu Apr 02 13:11:12 2015 +0200
@@ -53,7 +53,7 @@
     .config(function($logProvider){
       $logProvider.debugEnabled(true);
     })
-    .service('searchApi', function($resource, context, $sce) {
+    .service('searchApi', function($resource, context) {
         this.searchResource = function(params){
             return $resource(context.urls.searchUrl,  
                 {
@@ -84,6 +84,8 @@
                     }
                 });
         };
+    })
+    .service('ammicoApi', function($resource, context, $sce) {
         this.listBooks = $resource(context.urls.ammicoUrl+'/books');
         this.book = $resource(context.urls.ammicoUrl+'/books/:idBook', {idBook:'@idBook'});
         this.order = $resource(context.urls.ammicoUrl+'/books/:idBook/order', {idBook:'@idBook'});