summaryrefslogtreecommitdiff
path: root/client/button.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/button.js')
-rw-r--r--client/button.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/button.js b/client/button.js
index bc3828b..1ab171e 100644
--- a/client/button.js
+++ b/client/button.js
@@ -15,6 +15,16 @@ Template.login.events({
}
});
+Template.one.helpers({
+ photos: function () {
+ return Session.get('photos');
+ }
+})
+
Accounts.onLogin(function() {
+ Meteor.call('getInstagramMedia', function(error, results) {
+ console.log('Instagram response', results.data)
+ Session.set('photos', results.data.data);
+ });
Router.go('one');
});