X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=afm-client%2Fapp%2FFrontend%2Fetc%2FAppConfig.js;h=16c05b536e8b425d7a403b0db2ab13e7af59afe4;hb=712446796a33a47ea7e5fafd7950141ac8060530;hp=16a2c8733750bdccba5b886e9cfd0614ffe5f8d1;hpb=3ebdce373e134b70b129154d8033c1c628847a6c;p=src%2Fapp-framework-demo.git diff --git a/afm-client/app/Frontend/etc/AppConfig.js b/afm-client/app/Frontend/etc/AppConfig.js index 16a2c87..16c05b5 100644 --- a/afm-client/app/Frontend/etc/AppConfig.js +++ b/afm-client/app/Frontend/etc/AppConfig.js @@ -15,7 +15,8 @@ image : 'images/', icons : 'images/icons/', avatar: 'images/avatars/', - audio : 'images/audio/' + audio : 'images/audio/', + appli : 'images/appli/' }, myapi: { // Warning paths should end with / @@ -43,7 +44,7 @@ .factory('AppCall', function ($http, AppConfig) { var myCalls = { get : function(plugin, action, query, callback) { - query["token"] = AppConfig.session.token; // add token to provided query + query.token = AppConfig.session.token; // add token to provided query $http.get('/api/' + plugin + '/' + action , {params: query}).then (callback, callback); }