X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-demo.git;a=blobdiff_plain;f=afm-client%2Fapp%2FFrontend%2Fetc%2FAppConfig.js;fp=afm-client%2Fapp%2FFrontend%2Fetc%2FAppConfig.js;h=e14dcef9d9b060f851c84d690f2b4a4618ca0e71;hp=196320359d84c3e482e1f0a38c89d9da6c1061b0;hb=3482263a53803b6e7662e67b39ed97bdd9fcef13;hpb=e638f2f05da0c8d49c27a4323e261b6f36447d2b diff --git a/afm-client/app/Frontend/etc/AppConfig.js b/afm-client/app/Frontend/etc/AppConfig.js index 1963203..e14dcef 100644 --- a/afm-client/app/Frontend/etc/AppConfig.js +++ b/afm-client/app/Frontend/etc/AppConfig.js @@ -32,10 +32,12 @@ }) // Factory is a singleton and share its context within all instances. - .factory('AppCall', function ($http, AppConfig) { + .factory('AppCall', function ($http, AppConfig, $log) { var myCalls = { get : function(plugin, action, query, callback) { - if (!query.token) query.token = AppConfig.session.token; // add token to provided query + if (!query.token) query.token = AppConfig.session.token; // add token to provided query + $log.log ('AppCall.get /api/' + plugin + '/' + action + '?' + query); + $log.log (callback); $http.get('/api/' + plugin + '/' + action , {params: query}).then (callback, callback); }