client/app/app.js
changeset 14 4d27fbc3f9df
parent 13 08f34bbc70ee
child 27 2b508b65571a
--- a/client/app/app.js	Wed Mar 11 17:38:14 2015 +0100
+++ b/client/app/app.js	Tue Mar 17 16:34:23 2015 +0100
@@ -54,7 +54,6 @@
       $logProvider.debugEnabled(true);
     })
     .service('searchApi', function($resource, context) {
-        console.log('search 4',$resource, context);
         this.searchResource = function(params){
             return $resource(context.urls.searchUrl,  
                 {
@@ -85,6 +84,7 @@
                     }
                 });
         };
+        this.getResource = $resource(context.urls.ammicoUrl+'/:action', {action:'@action'});
     });
 
 })();