angular.module('MyApp')
  .factory('Account', ['$http', '$window', function($http, $window) {
    return {
      getUserInfo: function() {
        return $http.get('/api/me?token=' + $window.localStorage.token);
      }
    };
  }]);
angular.module('MyApp')
  .factory('Account', ['$http', '$window', function($http, $window) {
    return {
      getUserInfo: function() {
        return $http.get('/api/me');
      }
    };
  }]);
Remove token querystring from API call
Remove token querystring from API call
