})
// 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);
}