Skip to content

Commit

Permalink
Add import
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimpson committed Mar 25, 2019
1 parent 4fdcee5 commit 3ecd36e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/message-action/client/messageAction.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Template } from 'meteor/templating';
import { HTTP } from 'meteor/http';

Template.messageAction.helpers({
isButton() {
Expand All @@ -12,6 +13,6 @@ Template.messageAction.helpers({
},
executeApiRequest() {
const headers = { 'X-Auth-Token': localStorage.getItem('Meteor.loginToken'), 'X-User-Id': localStorage.getItem('Meteor.userId') };
HTTP.get('/api/v1/statistics', { headers }, (err, response) => { console.log(err, response) ;});
HTTP.get('/api/v1/statistics', { headers }, (err, response) => { console.log(err, response); });
},
});

0 comments on commit 3ecd36e

Please sign in to comment.