Skip to content

Instantly share code, notes, and snippets.

@e-oz
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e-oz/01154210e6e373739593 to your computer and use it in GitHub Desktop.
Save e-oz/01154210e6e373739593 to your computer and use it in GitHub Desktop.
'use strict';
// @ngInject
function UserEventsLog($resource, Config, Token) {
return $resource(Config.apiUrl + '/user_events/:token', {token: Token.get()}, {
count: {
method: 'GET',
url: Config.apiUrl + '/user_events/count/:token',
isArray: false,
transformResponse: function (data) {
data = JSON.parse(data);
return {'count': data};
}
}
});
}
export default UserEventsLog;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment