From 5ce1cb444496168969b5ceb25d73e9b9f5ec98d3 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Wed, 30 Apr 2014 00:02:05 -0400 Subject: [PATCH] Removed unused POST route for instagram api example --- app.js | 1 - controllers/api.js | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/app.js b/app.js index eb415e2e4b8..084a7454be4 100755 --- a/app.js +++ b/app.js @@ -150,7 +150,6 @@ app.get('/api/venmo', passportConf.isAuthenticated, passportConf.isAuthorized, a app.post('/api/venmo', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.postVenmo); app.get('/api/linkedin', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getLinkedin); app.get('/api/instagram', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getInstagram); -app.post('/api/instagram', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.postInstagram); /** * OAuth routes for sign-in. diff --git a/controllers/api.js b/controllers/api.js index 2e013f8c8fb..85ab630bc75 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -539,18 +539,4 @@ exports.getInstagram = function(req, res, next) { popularImages: results.popularImages }); }); -}; - -exports.postInstagram = function(req, res, next) { - var token = _.findWhere(req.user.tokens, { kind: 'instagram' }); - - ig.use({ access_token: token }); - ig.use({ client_id: secrets.instagram.clientID, client_secret: secrets.instagram.clientSecret }); - - - - ig.user_search('13reasons', function(err, users, limit) { - console.log(users); - }); - }; \ No newline at end of file